up: FLOAT128     index Zimbu documentation

CLASS FLOAT128.float128 @public

summary

     

The builtin type float128.

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

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

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

members (alphabetically)

     

FUNC $Size() int @public

     

Return the number of bytes in a float128.

Always returns 16, since a float128 is 128 bits.

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