473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

MathCeil

I have the following code in a shopping cart.
1) What is MathCeil used for ? Not having luck searching for it. I'm
guessing it's used to return a number.
2) Can this code be modified to return a number that is always rounded UP?
i.e. 1.1 lbs. = 2 lbs.
thanks

<SCRIPT LANGUAGE=JavaScript RUNAT=Server NAME="UC_CARTII">
function MathCeil(num) {
return Math.ceil(num)
}
</SCRIPT>
Jul 20 '05 #1
1 1402

"shank" <sh***@tampabay.rr.com> schreef in bericht
news:Cu**********************@twister.tampabay.rr. com...
I have the following code in a shopping cart.
1) What is MathCeil used for ? Not having luck searching for it. I'm
guessing it's used to return a number.
2) Can this code be modified to return a number that is always rounded UP?
i.e. 1.1 lbs. = 2 lbs.
thanks


1) Rounding numbers UP through the Math.ceil method (e.g. 1.1 becomes 2)
2) See answer # 1
JW

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.