From: Ilya on
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
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