[Info-vax] VMS Software Q1 '23 Update

Arne Vajhøj arne at vajhoej.dk
Mon Jan 30 19:53:13 EST 2023


On 1/30/2023 7:33 PM, Johnny Billquist wrote:
> On 2023-01-29 15:57, Simon Clubley wrote:
>> On 2023-01-28, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>> VMS Basic has a decimal type.
>>
>> Did RSTS/E Basic ever get a decimal data type, and if so, when ?

> RSTS/E BASIC never had fancy data types, however for money calculations, 
> you usually used strings, and the string math functions, which were exact.

> String math really was the thing for financial stuff in BASIC.

A funny note. PHP still supports that method!

<?php
bcscale(21);
$x = '100000000000000000000.000000000000000000001';
$y = '200000000000000000000.000000000000000000002';
$z = bcadd($x, $y);
echo $z;
?>

outputs:

300000000000000000000.000000000000000000003

Arne





More information about the Info-vax mailing list