- Home
·
- Math/Dates
·
- Using a number larger than 2,147,483,647 (or smaller than -2,147,483,648) with the Mod operator or
Using a number larger than 2,147,483,647 (or smaller than -2,147,483,648) with the Mod operator or
Using a number larger than 2,147,483,647 (or smaller than -2,147,483,648) with the Mod operator or the integer division operator (\) causes an
Rate Using a number larger than 2,147,483,647 (or smaller than -2,147,483,648) with the Mod operator or
(1(1 Vote))
' round off the numerator and denominator (ensure number is .0)
pNumerator = Int(pNumerator + 0.5)
pDenominator = Int(pDenominator + 0.5)
' Emulate modulo arithmetic
Modulo = pNumerator - (pDenominator * Fix(pNumerator / pDenominator))
End Function
Using a number larger than 2,147,483,647 (or smaller than -2,147,483,648) with the Mod operator or Comments
No comments yet — be the first to post one!
Post a Comment