Am I using the wrong data type? Found this, trying to get free disk space
on a large drive.
--
PB9.01.7096
Thank you,
R.Chauvin
I'll bet it's implicitly converting to integer because of the datatype of the multiplicands.
Try this:
uLong l1=19535032
uLong l2=4096
LongLong lll_test
lll_test = l1 * l2
--
Paul Horan[TeamSybase]
"Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom> wrote in message
news:40b35bf2$1@forums-2-dub...
But this works! Must be a buffer problem or something!
LongLong lll_Test
lll_Test = 19535032 * 409.6 * 10
"Paul Horan[TeamSybase]" <paulhATvcisolutionsDOTcom> wrote in message
news:40b35bf2$1@forums-2-dub...
This also works... (Just by adding a decimal point), so must
conclude it is doing some internal conversions
LongLong lll_Test
lll_Test = 19535032 * 4096.
Using longlong() function to cast numeric number to longlong data type may
be more reliable.
<dave speight> wrote in message news:40b35e88.18a...@sybase.com...
Notice that my local variables weren't "longlong", they were unsignedLong. That's a "uLong" type.
--
Paul Horan[TeamSybase]