/ Published in: ASP
Use this function to calculate modulo on numbers that overflow doubles. Where "number" is the value you want to devide, and "div" is the number you want to devide by.
Expand |
Embed | Plain Text
function modulo(number, div) tmp = "" for i = 1 to len(number) tmp = tmp & mid(cStr(number), i, 1) r = cInt(tmp) mod div tmp = cStr(r) next modulo = cInt(tmp) end function
You need to login to post a comment.
