Subject Re: longer number fields
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 4 Aug 2021 21:17:51 -0700
Newsgroups dbase.getting-started

On 8/4/2021 7:32 PM, Charlie wrote:
> Is there a way to prevent longer numbers from doing something like this?  3932E +12.  I have a 15 non-decimal number field that can take a number like 123456789123  and turn it into 123456000000 when replacing with another long number.
>
> a.fields["idno"].value = af
>
> where af and idno are 11 or 12 digit numbers.


SET HIGH PRECISION ON // probably a good start

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm