Skip to content
abinition edited this page Nov 6, 2014 · 7 revisions

#float

###Convert to an float value or create an long variable.

Syntax

result = float value ;
float variable [= value] ; 

Arguments

  1. list value

A value of any type.

Return Value

float result
  • +/-1.40239846E-45 to +/-3.40282347E+38 : A value from min to max.

The STATUS variable is set to $ACKNOWLEDGE

When the argument is an array variable, all the elements in the array are converted, and the result will be a vector array

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: float variable [= value] ;

  • %IDENTIFIER: 'variable' argument is not a valid identifier, literal, or reference

Description

  • Convert to an float value or create an long variable.

Examples

put float ( “+1.23e-08” ) ;
float x = { 1.1, 1.2, 1.3, 1.4 } ;
describe x ;

Related Links

double

Clone this wiki locally