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

Formatting numbers

We have one database that they are constantly reformatting their
inputs.
I asked about the changes and they can never get the same types of
numbers from the people.

some are -.95 and later they might get -.9 while some have been
collected in the past as 19.9 later the same data comes to them as
19.99

At first they were wanting us to format the fields so they could not
input the wrong numbers but now this has become impossible.

I was wondering if we could do something like ###.###
they assured me that no number would be over 80 and no negative
numbers would be less than 60. as well as nothing with more than 3
significant digits.

I tried it and in this format if they type 6.6 they get 6.6 and
assured them that they are not required to fill in like having to type
0.600

before putting this out I wanted to ask am I correct in doing this?
thanks for help this got to be a mess real quick since they are
collecting over 100 values for each person.


Nov 26 '07 #1
3 1671
On Nov 26, 1:03 pm, sparks <spa...@comcast.netwrote:
We have one database that they are constantly reformatting their
inputs.
I asked about the changes and they can never get the same types of
numbers from the people.

some are -.95 and later they might get -.9 while some have been
collected in the past as 19.9 later the same data comes to them as
19.99

At first they were wanting us to format the fields so they could not
input the wrong numbers but now this has become impossible.

I was wondering if we could do something like ###.###
they assured me that no number would be over 80 and no negative
numbers would be less than 60. as well as nothing with more than 3
significant digits.

I tried it and in this format if they type 6.6 they get 6.6 and
assured them that they are not required to fill in like having to type
0.600

before putting this out I wanted to ask am I correct in doing this?
thanks for help this got to be a mess real quick since they are
collecting over 100 values for each person.
I don't follow what these numbers mean or how they are used, but as
far as formatting goes... Formatting affects only how numbers are
displayed, not the underlying storage. Storage (in a table) is
determined by the type of number (long, double, etc.) you establish in
the column definition. By the same token, the column definition
determines how input is stored, not the format applied to a form
control.

If display is important, check out F1 on "user defined number
formats". In your example above if people prefer to see .6 as 0.600
the format would be "0.000", but again, this does nothing to change
how the number is actually stored in your database.

Hope I didn't go round-and-round too much.
Nov 26 '07 #2
Yes they are paranoid that if they get a number that is 19.90 and they
see 19.9 ....hey wait that is NOT what I entered.
Then they get a number like 19.995....and see 19.99 where is the 5
aHHHHHHH

lol

I am just glad its not 000.004
On Mon, 26 Nov 2007 15:31:40 -0800 (PST), Smartin
<sm********@gmail.comwrote:
>On Nov 26, 1:03 pm, sparks <spa...@comcast.netwrote:
>We have one database that they are constantly reformatting their
inputs.
I asked about the changes and they can never get the same types of
numbers from the people.

some are -.95 and later they might get -.9 while some have been
collected in the past as 19.9 later the same data comes to them as
19.99

At first they were wanting us to format the fields so they could not
input the wrong numbers but now this has become impossible.

I was wondering if we could do something like ###.###
they assured me that no number would be over 80 and no negative
numbers would be less than 60. as well as nothing with more than 3
significant digits.

I tried it and in this format if they type 6.6 they get 6.6 and
assured them that they are not required to fill in like having to type
0.600

before putting this out I wanted to ask am I correct in doing this?
thanks for help this got to be a mess real quick since they are
collecting over 100 values for each person.

I don't follow what these numbers mean or how they are used, but as
far as formatting goes... Formatting affects only how numbers are
displayed, not the underlying storage. Storage (in a table) is
determined by the type of number (long, double, etc.) you establish in
the column definition. By the same token, the column definition
determines how input is stored, not the format applied to a form
control.

If display is important, check out F1 on "user defined number
formats". In your example above if people prefer to see .6 as 0.600
the format would be "0.000", but again, this does nothing to change
how the number is actually stored in your database.

Hope I didn't go round-and-round too much.
Nov 27 '07 #3
On Tue, 27 Nov 2007 12:58:49 GMT, sparks <js******@swbell.netwrote:
>Yes they are paranoid that if they get a number that is 19.90 and they
see 19.9 ....hey wait that is NOT what I entered.
Then they get a number like 19.995....and see 19.99 where is the 5
aHHHHHHH
And if 'they' enter 19.9 an see 19.900 does that also bother them?

Chuck
--
Nov 27 '07 #4

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

Similar topics

3
by: Dan Sommers | last post by:
Hi, I have a class whose objects represent physical quantities including uncertainties and units, and I would like more control over the way they print. I have a __str__ method which outputs...
4
by: Tommi Mäkitalo | last post by:
Hi I need to format floating-point-numbers with exact 2 digits after decimal point. I could use printf with "%.2f", but it don't use std::locale. Any ideas? -- Tommi Mäkitalo
4
by: Dave Brydon | last post by:
Access 2003 I have a combo box in my personnel table, which draws its data from a trade code table; the original field in the code table, is numeric, Long Integer, and formatted with 5 zero's . ...
4
by: John Sutor | last post by:
I need some code that, on each keyup event, will take all of the numbers typed into the text box and format as they type to look like this 100 1,000 10,000 100,000 1,000,000 John S
7
by: ilona | last post by:
Hi all, I store phone numbers in the database as 123447775665554(input mask is used for input, and some numbers have extensions), and I also know from db if the number is Canadian, US, or some...
9
by: Markus | last post by:
Hi all, two questions on formatting numbers: - Given is a decimal/money datatype in SQL-Server, e.g. decimal(9,4), thus displaying a value like 13.2000 How can I prevent to display the...
5
by: Carla | last post by:
I have Access 2000. I made a mailing list database and for the life of me can't remember how to format the zip code field so it will print on the label as xxxxx-xxxx. I have tried various - 9, #,...
6
by: Rafael Olarte | last post by:
The goal of this project is to output the following information as follows: 34.5 38.6 4.1 42.4 3.8 close 46.8 4.4 big change. The values of the first colunm are obtain from a file...
2
by: jerryyang_la1 | last post by:
I need some advice on formatting numbers using PHP. My database holds numbers like: 10 0.2 I need these to be displayed as 10.00
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: 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: 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
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...

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.