Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

round()

Purpose

Round a floating point number

Description

Round a floating point number to the nearest integer

Syntax

result = round( value )

Arguments

value float value to be rounded

result nearest integer result (0.5 rounds up to 1)

Example

print( round( 3.1415926 ) ) // prints 3.000000
print( round( 3.5 ) )       // prints 4.000000
update()
sleep( 3 )

Associated Commands

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