[Info-vax] VMS Software Q1 '23 Update

Dave Froble davef at tsoft-inc.com
Sun Jan 29 12:03:19 EST 2023


On 1/29/2023 8:16 AM, Scott Dorsey wrote:
> Scott Dorsey <kludge at panix.com> wrote:
>>
>> Signed integers are fine.  Read and write with a . added before the last two
>> digits, so the integer contains cents.  That was very common practice.
>
> Other workarounds people have used over the years include keeping dollars and
> cents as two diferent integers, and strings or integer arrays used to store
> BCD or ascii numbers.  That latter is very handy when you're asked to deal
> with trillions of dollars and don't have BCD types available.
> --scott
>

Yes, there can be library routines to do some things, but, when the in memory 
data types are limited, you either build some hard to use capabilities, if even 
possible, or, you use floating point in memory.

Trillions of dollars were never an issue.  At least for what we were doing.

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list