English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method converts a number to a floating-point value.
float(X)
X-A numeric value.
The return value is a floating-point number.
-module(helloworld). -export([start/). start() -> Num = float(3), io:fwrite("~f",[Num]).
3.000000