Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Tim Mannah #1
Rounding to 2 decimal places
I have this placed in my code
<%Response.write(Session("MembershipCost"))%>
the number it contains is 605
how do i use the round Function to make it look like 605.00
i tried <%Response.write Round((Session("MembershipCost"),2))%> but it says
that an expected ) is missing
any ideas??
Tim Mannah Guest
-
Truncate a decimal pointed figure without rounding ...
How can I get -0.162058 to -0.1 rather than rounding to -0.2? I know I'm being stupid here, but it's really bugging me. The number before the... -
Rounding decimal places
What is the best and most acurate way to round a number to 2 decimal places. It has the be a correctly rounded number not just a mask.. eg: round... -
Decimal places!
Hi fellow Director users!, I had a countdown timer (75 seconds) for a game, and I wanted to display the time taken to complete it, in a field. ... -
Rounding up anything past the decimal point sprintf
Hi all How can I round a number up if there is any value other than 00 after the decimal point here is what I have: my $count = "5"; my $item... -
do not cut decimal places
Hi, following problem (oracle8): I want to insert a value with precision (#.##) in a number(10,2) column. It works but the values which end with... -
Manuel Socarras #2
Re: Rounding to 2 decimal places
try:
Response.Write FormatNumber(Session("MembershipCost"), 2)
HTH,
manuel
Tim Mannah wrote:> I have this placed in my code
>
> <%Response.write(Session("MembershipCost"))%>
>
> the number it contains is 605
>
> how do i use the round Function to make it look like 605.00
>
> i tried <%Response.write Round((Session("MembershipCost"),2))%> but it says
> that an expected ) is missing
> any ideas??
>
>Manuel Socarras Guest



Reply With Quote

