up: FLOAT80     index Zimbu documentation

CLASS FLOAT80.float80 @public

summary

     

The builtin type float80.

NOT IMPLEMENTED YET, for the time being this works just like "float".

NOTE: When compiled to Javascript a float80 is stored as a float, since Javascript only supports float numbers.

$Size() int @public  Return the number of bytes in a float80.
$ToString() string @public  Return the number in a short form.
 
 

members (alphabetically)

     

FUNC $Size() int @public

     

Return the number of bytes in a float80.

Returns 10, 12 or 16, since a float80 is 80 bits plus padding.

FUNC $ToString() string @public

     

Return the number in a short form.

For example, 1.234.ToString() returns "1.234".

This uses 6 decimal places and uses the exponent notation when that is shorter.

license

      Copyright 2014 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0