[gtkada] how to print a value with 16 bit precision
Vinzent Höfler
JeLlyFish.software at gmx.net
Fri Jun 13 18:11:18 CEST 2008
Damien Carbonne wrote:
> Practically, you need to change:
> Put(cnt + eps + eps + eps + eps + eps + eps);
> into:
> Put(cnt + eps + eps + eps + eps + eps + eps, Aft => 16);
>
> Do the same thing for the other uses of Put with a Long_Float (You can
> find them yourself !)
>
> As indicated by Christoph Grein in his reply, this is indeed dubious as Float has 15 digits.
> But this is what you (your teacher?) asked.
Sure? My understanding was that BITS are different from DIGITS, unless
base is specified as 2. ;)
Vinzent.
More information about the gtkada
mailing list