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

Identify Floating point data type

Hi Friends,
I am using a Number field which stored Floating point values...
For example:
Field Name: Salary
Field Data Type: Number
Field Size: Decimal
Decimal place: 2

I need to get the data type of this field as Floating point or else as
Decimal programmatically(in C or C++)...
How could we achieve this...

Thanks in Advance,
ArunDhaJ

Aug 24 '07 #1
2 1885
On Fri, 24 Aug 2007 12:45:17 -0000, ArunDhaJ <ar******@gmail.com>
wrote:

You should be using the Currency data type to store monetary values.
-Tom.

>Hi Friends,
I am using a Number field which stored Floating point values...
For example:
Field Name: Salary
Field Data Type: Number
Field Size: Decimal
Decimal place: 2

I need to get the data type of this field as Floating point or else as
Decimal programmatically(in C or C++)...
How could we achieve this...

Thanks in Advance,
ArunDhaJ
Aug 24 '07 #2
On Aug 24, 6:40 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 24 Aug 2007 12:45:17 -0000, ArunDhaJ <arund...@gmail.com>
wrote:

You should be using the Currency data type to store monetary values.
-Tom.
Hi Friends,
I am using a Number field which stored Floating point values...
For example:
Field Name: Salary
Field Data Type: Number
Field Size: Decimal
Decimal place: 2
I need to get the data type of this field as Floating point or else as
Decimal programmatically(in C or C++)...
How could we achieve this...
Thanks in Advance,
ArunDhaJ- Hide quoted text -

- Show quoted text -
Actually i told that Field name as Salary as an example...
but i need to do these operation for a floating point field.

Aug 24 '07 #3

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

Similar topics

9
by: dasacc | last post by:
Hi, I've only been using python for two days now but I'm working on it. I have the following text: <select><option></option><option></option></select><select><option></option></select> My...
4
by: Roger Leigh | last post by:
Hello, I'm writing a fixed-precision floating point class, based on the ideas in the example fixed_pt class in the "Practical C++ Programming" book by Steve Oualline (O' Reilly). This uses a...
31
by: JS | last post by:
We have the same floating point intensive C++ program that runs on Windows on Intel chip and on Sun Solaris on SPARC chips. The program reads the exactly the same input files on the two platforms....
5
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
24
by: j0mbolar | last post by:
C supports single precision floating point and double precision floating point but does it support fixed floating point? i've read that fixed floating point is more accurate than single precision...
15
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
7
by: Hiten | last post by:
Hi please check ffollowing conditon variable float1 and float2 holds user entered value..... Answer=float1 * float2; //output must be 8.5 output must to be 8.5 but it has 8.500002, i am...
10
by: Bryan Parkoff | last post by:
The guideline says to use %f in printf() function using the keyword float and double. For example float a = 1.2345; double b = 5.166666667; printf("%.2f\n %f\n", a, b);
9
by: ssubbarayan | last post by:
Hi all, I am trying a program to convert floating point values to a byte array and printing the same to the screen.The idea behind this is we already have an existing function which can do byte...
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
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...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.