Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question 2

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hi all
Im new to ASP.Net, but not ASP. I have been working with ASP for about 4 years. I am trying to get into the .Net world and I ran into a problem using the round command. I am getting this error message when the round function is called.

BC30451: Name 'round' is not declared.

Here is my call to it:
response.write(round("239209.091",2)

Any Idea's?

Thanks
Ralph
 
Ensure that you have have in your codebehind file the following : Imports System.Math

You have to specify numeric arguments for the Round Function.
By removing the strings from the first argument in the round function, the round should work.

Response.Write(Round(239209.091, 2))
 
I had the system.math thing going, so I just needed to take the " " out. I think in old asp i was able to and thats what threw me off.

Thanks.

Star for your work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top