Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Numeric Round

Status
Not open for further replies.

astech

Programmer
Jul 25, 2000
59
ID
Hi all,
I have a total value as 88.6840 but it's save as 88.6800.
I already to set decimal to 4.

any advice, please ?, cause i absolutely forget to handle this problem.

Thanks
 
The rounding you're seeing shouldn't be occuring unless there's something else going on.

If you are storing in a cursor or table, the value will be rounded to the decimals as set in the field. To avoid this you'd need to change the decimals for the field, or store the result somewhere else.

Brian
 
I'll repeat my previous request. Please show the code you are using to save the value. Also, what is the structure you are saving to?


-BP (Barbara Peisch)
 
here's the code :

Local cConsole
cConsole = SET("CONSOLE")
SET CONSOLE OFF
SELECT DtlMawb
WITH Thisform.pfm.pgd
CALCULATE SUM(DtlMawb.ngrossout) ;
FOR HdrMawb.cnomawb = .txtcnomawb.Value AND NOT DELETED();
TO .txtnaGrossout.Value

CALCULATE SUM(DtlMawb.nVolout) ;
FOR HdrMawb.cnomawb = .txtcnomawb.Value AND NOT DELETED();
TO .txtnaVolout.Value

*.txtntotJl.value= .txtnHrgDtl.Value-.txtnTtlDisk.Value

SELECT hdrMawb
SET CONSOLE &Cconsole
.txtnaGrossOut.Refresh
.txtnaVolOut.Refresh
ENDWITH
 
The code you posted does not necessarily save the values to fields. You're simply saving them to textbox values. Do you have these textboxes bound to fields? If so, it would be better to replace the fields directly. WHAT IS THE STRUCTURE OF THE FIELDS?


-BP (Barbara Peisch)
 
Yes, you're right, i don't know why but now it's done.

thanks to all of you.
Thanks, Barbara Peisch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top