473,408 Members | 2,441 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,408 software developers and data experts.

Currency field with 2 decimal

I need to display the data in the currency field up to 2 decimal point.
example if the fetch from data base is
option 1: 12.547 want to display 12.55
option 2: 12 want to display 12.00
option 3: 12.5 want to display 12.50
is there is any way I can use any oracle function and make my sql query result look like this. I will really appreciate help.
Jan 4 '08 #1
2 3929
debasisdas
8,127 Expert 4TB
use in this format
Expand|Select|Wrap|Line Numbers
  1. select to_char(round(12.5,2),'99999999.99') from dual
Jan 6 '08 #2
amitpatel66
2,367 Expert 2GB
I need to display the data in the currency field up to 2 decimal point.
example if the fetch from data base is
option 1: 12.547 want to display 12.55
option 2: 12 want to display 12.00
option 3: 12.5 want to display 12.50
is there is any way I can use any oracle function and make my sql query result look like this. I will really appreciate help.
Hi Dhanashri,

Welcome to TSDN!!
Please make sure you follow POSTING GUIDELINES when ever you post in this forum

Thanks
MODERATOR
Jan 7 '08 #3

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

Similar topics

3
by: news.shaw.net | last post by:
I have a subform that contains a currency field. If I tab my way to the field, everything works as desired, a number can be entered, and when I leave the field it is rendered as a currency...
4
by: digitalavatar | last post by:
I am having a problem with my Access 2000 front end to a SQL 7 or 2000 database. I create a table in SQL with a field named, say, amt, data type MONEY. When I link the table in Access using ODBC,...
3
by: Dave Stone | last post by:
This question appeared years ago in the context of Acc2K and SQL Server 7, but no replies were posted. HOWEVER!! It still seems to be a problem with Acc XP and SQL Server 2000. Surely someone has a...
2
by: Chuck Insight | last post by:
Hi All, I designed an input query as the basis of a form. Some fields (like for pennies) are numbers that I formatted as currency and specified as 2 decimal places. However, it appears to round...
11
by: Adrian | last post by:
Hi I want to use the following declarations but vb dotnet keeps complaining that currency can't be used because it private ? I have tried it in a module and in the declaration pare same error!...
11
by: MikeY | last post by:
Hi Everyone, I'm trying to extract my pricing from my Access.mdb. Developing WinForm C#. I've read previous posts on the subject, but I'm still confused. In Access my "Price" is of "Currency"...
2
by: crazytegger | last post by:
Hi all, Im having trouble with currency formatting and the amount of decimals displayed. Most of my stored values are pretty standard ($10.50). Some item have a 4 decimal place cost though...
14
by: Scott M. | last post by:
Ok, this is driving me nuts... I am using VS.NET 2003 and trying to take an item out of a row in a loosely-typed dataset and place it in a label as a currency. As it is now, I am getting my...
6
by: mukesh | last post by:
Hi, I have a field in a table the property of which i have set as a general number with 3 decimal places. I want to enter a weight 1.265 tons but the decimal place do not work.The number gets...
1
by: Jeff Williams | last post by:
I am looking for a Currency control/Number Control which has the following behavior. If you are entering a number such as 123.67 the control behaves like this. 1. The field (control) is right...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
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,...

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.