Total Pageviews

Wednesday, April 9, 2014

math.fmod

Math.fmod()
ប្រើសំរាប់ត្រឡប់នៅតំលៃនៅសល់ remainder of the division របស់ តាមរយះ Y that rounds the quotient towards zero។ the remainder of a division operation is the result of subtracting the integral quotient multiplied by the denominator from the numerator:
Remainder = numerator – quotient * denominator
Syntax: math.fmod (x,y)
X(តំរូវការ) វាជាចំនួនលេខដែលជា numerator of the quotient
Y(តំរូវការ) វាជាចំនួនលេខដែលជា denominator of the quotient

សូមមើលកូដះ
Print (math.fmod (5.3,2)) – 1.3
Print (math.fmod (1,0)) -- NaN


No comments:

Post a Comment