Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.