Prev: recursion
Next: XBEE with matalb
From: Ilya on 23 Jun 2010 05:59 Hello! Format "short" displays 4 digits after a decimation point. Is there any way to display 2 digits? Thanks in advance for answers!
From: Walter Roberson on 23 Jun 2010 09:26 Ilya wrote: > Format "short" displays 4 digits after a decimation point. Is there any > way to display 2 digits? Not without overriding the display() routine and having it format in whatever format you want. It is non-trivial coding as it has to take into account formatting for nested structures and such, and I wouldn't recommend tackling it. The other poster's suggestion to use sprintf is likely to be much more useful.
|
Pages: 1 Prev: recursion Next: XBEE with matalb |