Real and double numbers formatting - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Real and double numbers formatting

kryptorkryptor Posts: 1Member
Hi,
is it possible to force Pascal to write large real and double numbers digit by digit on the standard output, rather than the mantissa+exponent format? So that numbers like 1.0E+50 become 100000000000000000000000000000000000000000000000000 on the command line. I've tried field width formatting but that doesn't work for huge reals. Searched the web but to no avail. I also looked up some directives in the manual, but no one does what I want. Thanks in advance for reply.

Regards,

kryptor

Comments

  • AtexAtex Posts: 268Member
    : Hi,
    : is it possible to force Pascal to write large real and double
    : numbers digit by digit on the standard output, rather than the
    : mantissa+exponent format? So that numbers like 1.0E+50 become
    : 100000000000000000000000000000000000000000000000000 on the command
    : line. I've tried field width formatting but that doesn't work for
    : huge reals. Searched the web but to no avail. I also looked up some
    : directives in the manual, but no one does what I want. Thanks in
    : advance for reply.

    As far as I know formatting works up to 18-20 digits at its best, anything more you'll have to write your own display routine.

Sign In or Register to comment.