English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Erlang Is_float Method

Numbers in Erlang

This method checks if the number is a floating-point value.

Syntax

Is_float(X)

Parameter

X-A numeric value.

Return Value

If the number specified as a parameter is a floating-point type, the return value is true, otherwise false.

-module(helloworld). 
-export([start/0]). 
start() ->
   Num = 3.00, 
   io:fwrite("~w",[is_float(Num)]).
When we run the above program, we will get the following results.
true

Numbers in Erlang