Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

fract()

Purpose

Get the fractional part of floating point number

Description

Returns the fractional part of a floating point number (the part after the decimal point)

Syntax

result = fract( value )

Arguments

value floating point value find the fractional part of

result fractional part of value

Example

print( fract( 3.1415926 ) ) // prints 0.141593
print( fract( 3 ) )         // prints 0.000000
update()
sleep( 3 )

Associated Commands

int(), float(), 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.