Welcome, Guest. Please login or register.

Author Topic: 64 bit integers in SAS/C  (Read 12597 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline psxphill

Re: 64 bit integers in SAS/C
« on: July 21, 2013, 08:11:06 PM »
Quote from: nicholas;741476
I'm not 100% certain but I've got a vague recollection that the update from 6.58 to 7.01 introduced better large number handling. I could be wrong though as it's been a long time since I used it.
 
http://aminet.net/package/biz/patch/expsascxx
 
I've just read the readme and it doesn't mention it so I must have remembered wrongly.
 
Can't hurt to try though. ;)

http://support.sas.com/documentation/onlinedoc/sasc/doc750/html/changes/zgenid-5.htm
 
long long
 

Offline psxphill

Re: 64 bit integers in SAS/C
« Reply #1 on: May 07, 2017, 05:07:52 PM »
Quote from: billt;825465
How dows one get sasc 7.01? I only remember 6.5something as the max...


These two are on aminet, no idea what the difference is between them

http://aminet.net/package/dev/c/expsascxx.lha
http://aminet.net/package/dev/c/expsascxx_old.lha
 

Offline psxphill

Re: 64 bit integers in SAS/C
« Reply #2 on: May 07, 2017, 05:12:37 PM »
Quote from: Thorham;825449


Code: [Select]

    printf("Size: %d%d bytes.\n", high, low);


The printf is wrong, because low isn't zero filled.

you'd need something like:
Code: [Select]

    if (high)
        printf("Size: %d%05d bytes.\n", high, low);
    else
        printf("Size: %d bytes.\n", low);