LOTUSSCRIPT 言語


例:Fraction 関数
' Print the fractional part of PI
Print Fraction(PI)     ' Prints .141592653589793

'This example shows the relationship between Fix() and Fraction().

' Print PI

Print PI' Prints 3.14159265358979

' Print the integer part of PI

Print Fix(PI)' Prints 3

' Print the fractional part of PI

Print Fraction(PI)' Prints .141592653589793

関連項目