Hi All,
when i use "{0:#,#.##}" format string for decimal values it seems like that;
12,1457 --12,15
45,4119 --45,41
but for one decimal digit values it does not show zero after first decimal
digit.
12,4000 --12,4
78,8000 --78,8
45,5000 --45,5
are there any format string to show zero after decimal digit like that;
12,4000 --12,40
78,8000 --78,80
45,5000 --45,50
Thanks ..
White.. 1 1028
Ned White wrote:
Hi All,
when i use "{0:#,#.##}" format string for decimal values it seems like that;
12,1457 --12,15
45,4119 --45,41
but for one decimal digit values it does not show zero after first decimal
digit.
12,4000 --12,4
78,8000 --78,8
45,5000 --45,5
are there any format string to show zero after decimal digit like that;
12,4000 --12,40
78,8000 --78,80
45,5000 --45,50
I think you want
"{0:#,##0.00}"
--
Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dario Di Bella |
last post by:
Hi all,
we have the following urgent issue affecting our development team.
Initially we had one particular workstation that failed executing
queries on a DB2 database, raising an invalid date...
|
by: Tom |
last post by:
In the Developers Handbook, Getz provides a way to create a survey report
that displays either a line, Yes/No or multiple choice for each question.
It's done by placing three controls (one for each...
|
by: Tommy Vercetti |
last post by:
The first three of these statements work. The fourth doesn't.
String::Format("{0}{0}{0}{0}", S"");
String::Format("{0}{1}{0}{0}", S"", S"");
String::Format("{0}{1}{2}{0}", S"", S"", S"");...
|
by: Al Reid |
last post by:
First, I'm using vb2005. I have a string that is read from a barcode reader into a TextBox. The string is 6 characters long and
represents a date (mmddyy). I want to display it to the user in a...
|
by: gjuro kladaric |
last post by:
hi there,
I am just learning about IFormattable, ICustomFormatter, IFormatProvider and
the like...
although being a bit tricky to understand, it becomes clear after some
clicking and...
|
by: Roy |
last post by:
Hi all,
I'm creating a project that should always use this date format when displays
the dates or create dates. The back end database is a SQL Server and I like
to know what is the logical way...
|
by: veaux |
last post by:
I'm thinking this is easy but can't get it. I have a table with
following:
Table1
Date 1/1/2007
Table2
Type 0107 (This is MMYY of above)
So I'm having trouble using a query to turn the...
|
by: ARC |
last post by:
Hello all,
General question for back-end database that has numerous date fields where
the database will be used in regions that put the month first, and regions
that do not.
Should I save a...
|
by: param |
last post by:
Hi All,
I want to use %x as directive to get the locale specific date
representation. But, at the same time, i want to know the format of
the output for interpreting it through program. Is there...
|
by: Martin |
last post by:
I'm retrieving some records from a database. One of the fields
contains a date/time. I would like to format it as I send it out to
the table in the displayed page.
Can some one please tell me...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |