473,385 Members | 1,357 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,385 software developers and data experts.

formatting the decimal value 0.00 to 0,000.00

I am using a decimal function on my column ...I am getting every value right and in proper format as shown below :

SELECT DECIMAL(AMT_TXN_1,31,2) AMT_TXN_1 FROM DB2ADMIN.RPT_BA_PADC161

D:\data>db2 SELECT DECIMAL(AMT_TXN_1,31,2) AMT_TXN_1 FROM DB2ADMIN.RPT_BA_PADC
161

AMT_TXN_1
---------------------------------
112222.00
23435.00
443435.00
66435.00
66435.00
66435.00
66435.00
66435.00
66435.00
66435.00
60000.00
23435.00
0.00
2.56
0.00

15 record(s) selected.

I dont want 0.00 to be displayed as such rather I want it to be displayed as 00000.00
How to do that in DB2 . Can u please help .

Regards
Bikash
Apr 8 '08 #1
0 1427

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Charles Kerekes | last post by:
Hello everyone, I am still learning C++, so I'm not sure what I'm trying to do is possible. Her is a simplified example: char Test = 'L'; cout << "Test Char as decimal: " << dec << Test <<...
36
by: Andrew | last post by:
I trying to format my output to display a set number of decimal places. I have been trying to use the <iomanip> setprecision(), but that will only display the total number of digits. Can someone...
2
by: Guoqi Zheng | last post by:
Dear Sir, I am trying to get one decimal value from DB. However, every time, I got an INT back instead of decimal. For example, if I have 4.75 in DB, I will get a 5 back. The followings are...
1
by: ven | last post by:
hello i`m makin a asp.net service with database connection where i have an insert with decimal value, when i run my function i get this error : There are fewer columns in the INSERT statement...
4
by: spebola | last post by:
I am using vb.net 2003 professional and I get the following results when using the round method: dim Amount as decimal = 180.255 Amount = Amount.Round(Amount, 2) Amount now contains 180.25. ...
1
by: Microsoft News Group | last post by:
I am trying to make a column which is decimal format, convert nulls to a certain string such as "No Max". This is for a price range, and if they do not put a value in, a null value is put in...
7
by: Sukanta Bhattacharjee | last post by:
Hi, I am in big trouble for the last 10 days and not got any solution in the web. My problem is : I have a project in .NET 1.1 version, which I have transfered to .NET 2.0 version , almost all are...
11
by: irkahs | last post by:
Hello all, I ask this question because I searched and did not find anything that related to this query. My apologies if this is a mistake. Please see the following code. I am using...
4
OuTCasT
by: OuTCasT | last post by:
I have been trying to save a decimal value into my sql database, what do you use , money, decimal, smallmoney, int ???
1
by: pankajprakash | last post by:
Hi, I have a decimal number. I need to convert this decimal value to exponential value. I have a vb.net code to convert from decimal to exponential value is Format(100000, #.0#E-##) . When I run this...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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 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.