Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

trunc()

Purpose

Truncates a floating point number

Description

Returns the integer part of a floating point number

Syntax

result = trunc( value )

Arguments

value floating point value to be truncated

result integer part of a value

Example

printAt( 0, 0, trunc( 3.1415926 ) ) // prints 3.000000
printAt( 0, 1, trunc( 3.9 ) )       // prints 3.000000

for i = 1 to 100 loop
  update()
repeat

Associated Commands

int(), float(), fract(), round(), str()

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.