Solved

DECIMAL

Posted on 2013-01-17
3
317 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
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 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…

809 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