Total Pageviews
Wednesday, April 9, 2014
math.floor
Math.floor()
ប្រើសំរាប់ត្រឡប់ជា
integer smaller than or equal to X
Syntax: math.floor (x)
X(
តំរូវការ
)
វាជាចំនួនលេខ
សូមមើលកូដះ
Print (math.floor(0.5)) -- 0
Print (math.floor (-0.5)) -- -1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment