[Info-vax] VMS Software Q1 '23 Update

Johnny Billquist bqt at softjar.se
Mon Jan 30 19:36:40 EST 2023


On 2023-01-29 04:39, Dave Froble wrote:
> On 1/28/2023 8:28 PM, Scott Dorsey wrote:
>>> On 1/28/2023 6:19 PM, Johnny Billquist wrote:
>>>> On 2023-01-28 23:35, Arne Vajhøj wrote:
>>>>> On 1/28/2023 3:01 PM, Steven Schweda wrote:
>>>>>>> Consider the case where the numbers represent money.
>>>>>>
>>>>>>     Who cares what the numbers represent?  For example, if you 
>>>>>> round to
>>
>> One of the absolute FIRST things that I was told about floating point
>> variables in my first programming class was to NEVER use them to 
>> represent
>> money.
>> --scott
>>
> 
> What if you didn't have a choice?
> 
> RSTS/E V04b
> 
> Signed word integers
> Strings
> Single and double D-float
> 
> That's all there was ...

BASIC2

help fun b sum


   FUNCTIONS

     BUILT-IN

       SUM$

  The SUM$ function returns a string whose value is the sum of two  numeric
  strings.

  Format

      str-vbl = SUM$(str-exp1, str-exp2)

  Example

  600    Sigma$ = SUM$("234.444", A$)


Topic?


   Johnny



More information about the Info-vax mailing list