?
Solved

DECIMAL

Posted on 2013-01-17
3
Medium Priority
?
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 42

Accepted Solution

by:
pcelba earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

771 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