Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

float()

Purpose

Convert value to floating point

Description

Convert a string or integer value to a floating point number

Syntax

result = float( value )

Arguments

value string or int value to be converted

result floating point result

Example

print( float( "3.6" ) )       // prints 3.600000
print( float( "3.1415926" ) ) // prints 3.141593
print( float( "99" ) )        // prints 99.000000
print( float( "Hello" ) )     // prints 0.000000
update()
sleep( 3 )

Associated Commands

int(), fract(), round(), str(), trunc()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.