Vinnie Naydenov
05-20-2003, 03:26 PM
Hello everyone,
I have a silly little question, which will demostrate how new I am to JavaScript. Can anyone please tell me how I declare a variable in JavaScript which is type "real" or "float", whatever you want to call it. I would like to use it for dollar values. If there is a type "currency" or something similar out there, I would much rather use it, as long as it shows up to two decimal places. Thank you very much!
Vinnie
P.S. If I have to use "float" or "real", can you specify how I set it to show only up to 2 decimal places?
I have a silly little question, which will demostrate how new I am to JavaScript. Can anyone please tell me how I declare a variable in JavaScript which is type "real" or "float", whatever you want to call it. I would like to use it for dollar values. If there is a type "currency" or something similar out there, I would much rather use it, as long as it shows up to two decimal places. Thank you very much!
Vinnie
P.S. If I have to use "float" or "real", can you specify how I set it to show only up to 2 decimal places?