View previous topic :: View next topic
|
Author |
Message |
mfhelp Warnings : 1 New User
Joined: 29 Jun 2006 Posts: 33
|
|
|
|
In one of the interview, question asked was
"What is the Max no. that can be stored in 9(4) COMP variable" |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
had you searched the forum. Disscussed so many times that i can't count anymore.
regards, UmeySan |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
It depends on the compiler, but remember that a pic 9(4) comp field is usually a 16 bit integer and you can only store +-32667 in a signed 16 bit integer or +65535 in an unsigned 16 bit integer. You will be limited by the data format even if the compiler allows you store five digits. |
|
Back to top |
|
|
|