Solved

DECIMAL

Posted on 2013-01-17
3
308 Views
Last Modified: 2013-01-21
Hi,

we are using VFP9 the one column we have called ID has we would like to change it to the NEW_ID column

ID                                 NEW_ID
0.21                              0.2100
4                                   4.0000
0.30                              0.3000
5                                   5.0000
0
Comment
Question by:RVL
3 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 38790006
Hi

Open the table exclusively and modify the structure:

USE YourTable EXCLUSIVE
MODIFY STRUCTURE

and change the ID field size to the appropriate values and name.

The new field size should have 4 decimal places and the total field size should reflect the maximum stored number.
0
 
LVL 27

Expert Comment

by:CaptainCyril
ID: 38791651
9.9999 is length 6 decimals 4.
0
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 38792121
The old ID column already seems a float or numeric column, the formatting of the output is not the job of a browse or the database. That's a job of your form, report, whatever displays the id.

So all you need is an altering of the field name. If it's part of a relation to other tables that wouldn't work without side effects, I'd rethink this.

Bye, Olaf.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now