473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Format a number?

This seems to be a pretty basic question, but I can't find the answer. In
VB I format a number by:
format("1234", "#.00") (result: 1234.00)

This doesn't work in asp, I get an error. How do I format numbers? Thanks.
Jul 19 '05 #1
2 9116
What language are you using? VBscript? Try the formatnumber function.

http://msdn.microsoft.com/library/en...rmatnumber.asp

Ray at work

"Eagle" <ea*************@yahoo.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
This seems to be a pretty basic question, but I can't find the answer. In
VB I format a number by:
format("1234", "#.00") (result: 1234.00)

This doesn't work in asp, I get an error. How do I format numbers? Thanks.

Jul 19 '05 #2
Ah, that finally got it, I had tried formatnumber, but didn't have the
syntax right. Thanks!

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What language are you using? VBscript? Try the formatnumber function.

http://msdn.microsoft.com/library/en...rmatnumber.asp
Ray at work

"Eagle" <ea*************@yahoo.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
This seems to be a pretty basic question, but I can't find the answer. In VB I format a number by:
format("1234", "#.00") (result: 1234.00)

This doesn't work in asp, I get an error. How do I format numbers?

Thanks.



Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim Craig | last post by:
When I do a transform with a stylesheet containing the function format-number($varname,'#,##0.00') from XSLerator (which uses MSXML) I get the result I expect, a decimal number rounded to 2 places....
2
by: Richard Haber | last post by:
I am using format-number(-1234.56,'#,##0.00;(#,##0.00)') in a stylesheet that works in every xsl processor (including MSXML2) except for the one in ..NET 1.1. I am expecting to see (1,234.56) as...
5
by: Nathan Bloomfield | last post by:
Is it possible to setup a number format in a query to display result as x.xK (4.0K instead of 4000) I am trying to abbreviate the numbers contained in graphs which are not displaying...
1
by: crowl | last post by:
Hi all, I want to have a number in a certain format. I took a look in the msdn and was happy to find the format-number Function. This works fine. But unfortunately, I can't find the format...
1
by: silellak | last post by:
I have found an odd error when using an XSL stylesheet transform. We have a Notes/Domino application with the following line of code in one of the stylesheets: <xsl:value-of...
2
by: Robert Ludig | last post by:
When I format a number to a string in scientific notation: string.Format("{0:E}",20000); I get the following string (culture de-DE): 2,000000E+003 How can I format scientific notation in...
0
by: codeproblems | last post by:
============= XML content ================== <?xml version="1.0"?> <cdb> <spill> <ctx_volume>142300000</ctx_volume> <date>19670318</date> <shipname>TORREY CANYON</shipname> </spill>...
5
by: Bob | last post by:
Hello Folks, I am bring backa data reader dr from the database/ So I have a number of fields such as dr To put this in a table I use "<td>" + dr.ToString() + "</td>" But I want to...
1
by: Ela | last post by:
Hallo, I have next problem: When I'm traying export data from table from one column formated like longint (21,111,111.00 ) form access 2003 to the xml, number looks diferent...
3
ashsa
by: ashsa | last post by:
Hi everyone, I am trying to display a numeric value fetched from an sql server table which is stored in the exponential notation. For eg, 0.08 is getting stored in the table as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.