Avatar of Whing Dela Cruz
Whing Dela Cruz
Flag for Anguilla asked on

Two decimal

Hi experts, I wish to convert 1 to write into 1.00 Please see the code below

<%
i = 48 //I wish to write this into 48.00
j = 48.5 //I wish to write this into 48.50
%>
ASPHTMLJavaScript

Avatar of undefined
Last Comment
Julian Hansen

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Big Monty

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
HainKurt

try

<%=FormatNumber(n,2)%>

Open in new window

SOLUTION
HainKurt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Whing Dela Cruz

ASKER
Thanks both of you guys, its working!
Julian Hansen

Where does the JavaScript come in - are you wanting to output this from ASP or in JavaScript?

If ASP take a look at FormatNumber

If JavaScript take a look at toFixed()
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23