[34S & 31S] Unique display mode: significant figures
|
02-08-2015, 08:54 PM
Post: #11
|
|||
|
|||
RE: [34S & 31S] Unique display mode: significant figures
(02-08-2015 08:09 PM)matthiaspaul Wrote:Four bits store the mode argument but only the values 0-11 are used for the four other modes. It was Nigel's idea to use values 12-15 for the new SIG and SIG0 modes. It only allows 8 settings for each new mode but in this case that's sufficient. Look at [gs]et_dispmode_digs() in xeq.c to see how it's implemented, for which I'll take the blame.Quote:Two new modes are available: SIG and its zero-padded variant, SIG0. Both modes accept arguments from 0 to 7, allowing up to 8 of the most significant digits to be displayed.Not knowing how the state information for these modes was squeezed into the existing flags record, if it helps to save a bit, the SIG/SIG0 mode could also take the setting of the "LZON/LZOFF" flag 33 into account, I guess. LZON/LZOFF controls leading zeros in integer modes, which is a very different issue in my opinion, I'm not sure I'd want to mix those two things. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)