in reply to Re^2: help with sprintf
in thread help with sprintf

Can you give some examples of the output you expect to see from a range of different inputs?

Unless I state otherwise, all my code runs with strict and warnings

Replies are listed 'Best First'.
Re^4: help with sprintf
by lil_v (Sexton) on Jun 26, 2008 at 18:49 UTC
    example: Input: (user selects)
    2 e -10 (No. between 0-9) e (No. between 10 and -20)
    I want the output to be 0.0000000002 instead of 2e-10 I hope this helps...

      If $power is negative, you should define another var equal to -$power.

      Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

        yeah thats why i updated my post... even then, the numbers after 6 decimal places dont show.