AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Name

    round()

  • Examples

    Player:
    {
    var1: 2.6
    var2: 4.2
    var3: 6.5

    Event: Game_Start {
    var1 = round(var1)
    // Sets the value of var1 to the rounded value of var1

    var2 = round(var3)
    // Sets the value of var2 to the rounded value of var2

    var3 = round(var3)
    // Sets the value of var3 to the rounded value of var3

    print(var1 + ", " + var2 + ", " + var3)
    // Outputs 3, 4, 7
    }
    }
  • Description

    Returns the closest integer to the parsed number.
  • Syntax

    • round(number)
  • Related

    • ceil()

    • floor()

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen