Difference between revisions of "ObjectType:int64"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 27: Line 27:
 
===Decrement an int64===
 
===Decrement an int64===
 
*Count:Dec
 
*Count:Dec
 +
 +
== Operates On ==
 +
<tt>__int64 *</tt>
  
 
== See Also ==
 
== See Also ==

Revision as of 22:00, 15 December 2005

Description

Short for integer, an int64 is a whole number that can be represented in 64 bits. This datatype is limited to the numbers –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. It can hold the entire US National Debt... for now.

Members

  • float Float: This number, converted to a float (NOTE: Float is only accurate to 32 bits of precision)
  • string Hex: A hexadecimal string equivalent to this number
  • string LeadingZeroes[#]: A string representation of this number, with at least this many decimal places. The number will be lead with zeroes to reach the desired length

Methods

  • Inc: Increments this int64 by 1
  • Inc[formula]: Increments this int64 by a given amount
  • Dec: Decrements this int64 by 1
  • Dec[formula]: Decrements this int64 by a given amount
  • Set[formula]: Sets this int64 to a given value

Returns

The string representation of this number

Examples

Declare an int64

  • declare Count int64 37

Set an int64's value

  • Count:Set[37430]

Add two integers

  • Total:Set[${Total}+${Current}]

Increment an int64

  • Count:Inc

Decrement an int64

  • Count:Dec

Operates On

__int64 *

See Also