View previous topic :: View next topic
|
Author |
Message |
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
hi,
pic -(9).99.
how is this used ? i mean how will it handle positive and negatives values and how much space does it occupy? |
|
Back to top |
|
|
gomu_mm
New User
Joined: 05 Dec 2006 Posts: 19 Location: Chennai
|
|
|
|
Hi,
In case of -9.99, the negative sign is displayed only if the variable is negative.
It does not displays the - sign when positive value is passed to it.
Thanks,
Gomathi. |
|
Back to top |
|
|
Gursharan Khalsa
New User
Joined: 04 Sep 2007 Posts: 33 Location: Salinas
|
|
|
|
an how much space does it occpy? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
12 bytes
-(9) = 9
.99 = 3
=========
12 |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Dick,
I think you forgot the sign byte, s/b 13? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
I think you forgot the sign byte, s/b 13? |
Jack,
It's -(9). That should give only 9; plus that of .99 = 3 giving a total of only 12. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Arun,
You're right, I'm looking at -(9).99 and seeing -9(9).99 |
|
Back to top |
|
|
|