In this guide, we will discuss Is_float in Erlang. The method checks if a number is a float value.
Syntax
Is_float(X)
Parameters
X – A number value.
Return Value
The return value is true if the number specified as a parameter is a float value, else will return false.
For example
-module(helloworld). -export([start/0]). start() -> Num = 3.00, io:fwrite("~w",[is_float(Num)]).
Output
When we run the above program, we will get the following result.
true
Next Topic : Click Here
Pingback: Erlang - float | Adglob Infosystem Pvt Ltd
Pingback: Erlang - Numbers | Adglob Infosystem Pvt Ltd