View previous topic :: View next topic
|
Author |
Message |
deepu.surya Warnings : 1 New User
Joined: 01 Apr 2008 Posts: 10 Location: hyderabad
|
|
|
|
What is the maximum value that s9(6) Comp can store? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What's the compiler TRUNC option set to? |
|
Back to top |
|
|
deepu.surya Warnings : 1 New User
Joined: 01 Apr 2008 Posts: 10 Location: hyderabad
|
|
|
|
Sorry...no idea.
but s9(4) comp varialbe is taking values till +32767.
can you tell based on this?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Based on what you say, TRUNC(BIN) is the option being used. In that case, PIC S9(06) COMP is a full word and can hold values in the range -2,147,483,648 to 2,147,483,647. |
|
Back to top |
|
|
deepu.surya Warnings : 1 New User
Joined: 01 Apr 2008 Posts: 10 Location: hyderabad
|
|
|
|
ok. thank you. |
|
Back to top |
|
|
|