|
|
Feedback on: Math functions in JavaScript
irt.org | About | Feedback | 1972 [ previous next ] Feedback on: Sent by Worth: Comments: Great article on the oddities of using math in javascript. I've built an online-ordering system that make HEAVY usage of javascript. My problem is doing monetary calculations in script. I get the odd "negative zeros" and so on but my challenge is writing a function to round up monetary values - that is, numbers with two decimal places. I'm very close but there are still odd combinations of numbers that break the function. Do you (I HOPE) have such a function in your "toolbox"?? Thanks, Don Gentry Other feedback on 'Math functions in JavaScript' - show all
|
-- div -->
|