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

Can't save decimal numbers

Ok, I know this sounds bizarre and I regret to say it has me baffled. New
decimal fields in tables will accept entry of decimal numbers but
immediately change same into integers.

Can someone please tell me what incredibly silly thing I'm doing to cause
this???

Thanks
Nov 13 '05 #1
5 11068
You probably have an integer field.
You have to both set the type to numerical, and the subtype to either
Single or Double (precision floating point). Numerical defaults to Long
(integer)

lo*****@internet.com wrote:
Ok, I know this sounds bizarre and I regret to say it has me baffled. New
decimal fields in tables will accept entry of decimal numbers but
immediately change same into integers.

Can someone please tell me what incredibly silly thing I'm doing to cause
this???

Thanks


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html

Nov 13 '05 #2
On Fri, 24 Jun 2005 08:38:08 +0100, Bas Cost Budde
<b.*********@heuvelqop.nl> wrote:
You probably have an integer field.
You have to both set the type to numerical, and the subtype to either
Single or Double (precision floating point). Numerical defaults to Long
(integer)
Thanks for your reply but the settings areas follows:

Data Type: Number

On the General Tab:
Field Size: Decimal
Format: General Number or Fixed or Percent
Precision: 18
Scale: 0
Decimal Places: 2

All numerical entries with decimals are changed to integers.

Make sense?
lo*****@internet.com wrote:
Ok, I know this sounds bizarre and I regret to say it has me baffled. New
decimal fields in tables will accept entry of decimal numbers but
immediately change same into integers.

Can someone please tell me what incredibly silly thing I'm doing to cause
this???

Thanks


Nov 13 '05 #3
Like Bas says...

Change the decimal Field Size to Double and all should work loverly.

Rob.

Nov 13 '05 #4
Margaret and Loren Block wrote:
On Fri, 24 Jun 2005 08:38:08 +0100, Bas Cost Budde
<b.*********@heuvelqop.nl> wrote:
You probably have an integer field.
You have to both set the type to numerical, and the subtype to either
Single or Double (precision floating point). Numerical defaults to
Long (integer)

Thanks for your reply but the settings areas follows:

Data Type: Number

On the General Tab:
Field Size: Decimal
Format: General Number or Fixed or Percent
Precision: 18
Scale: 0
Decimal Places: 2

All numerical entries with decimals are changed to integers.

Make sense?


Scale = 0 means no decimal places.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5
On 24 Jun 2005 07:54:22 -0700, "dkintheuk" <rm*******@firenet.uk.com>
wrote:
Like Bas says...

Change the decimal Field Size to Double and all should work loverly.

Rob.

The nomenclature sure seems odd but changing the Field Size from Decimal to
Double and Format to General Number did it.

Thanks very much.
Nov 13 '05 #6

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

Similar topics

50
by: dataangel | last post by:
I wrote a function to compare whether two strings are "similar" because I'm using python to make a small text adventure engine and I want to it to be responsive to slight mispellings, like...
17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
3
by: erikthenomad | last post by:
Hey...I've been cracking head about this one all day, and I'm sure it's an easy answer, but here goes: I have a column entitled Sequ which is defined as a Decimal with Precision 10 and Scale 5. ...
7
by: Alberto | last post by:
Actually I have two quantities (4.61) stored as decimal numbers. Why if I try to sum them the result is 9.23 if the correct value is 9.22? Thank you
1
by: simon | last post by:
I have time in my program: for example: dim timeTest as datetime timeTest="10:15:10" I save this time to database as decimal value: timeTest.ToOADate - I get the decimal value and I save...
8
by: Sonnich | last post by:
Yes it can. All I want is a number formated as: 1234567,89 - plain numbers and a comma as decimal marker. formatnumber returns the number in american style, which is of no use. The format...
4
by: skatemore9690 | last post by:
#1 in Calculus you learned that log(1+x) = x - x^2/2 + x^3/3 - x^4/4 + ... for x in the interval (-1,1] (here x^2 means "x squared", etc.). Write a program which asks the user to type a...
7
by: Jromero | last post by:
I need to add the sum of hex and decimal right now is not adding anything A5 165 A5 165A50 FAA 4010 FAA
17
by: D'Arcy J.M. Cain | last post by:
I'm not sure I follow this logic. Can someone explain why float and integer can be compared with each other and decimal can be compared to integer but decimal can't be compared to float? True...
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: 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...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.