in reply to Re3: Rounding to a Given Number of Significant Figures Rather Than Decimal Places
in thread Rounding to a Given Number of Significant Figures Rather Than Decimal Places

What about a minus/plus sign in front of the number? And what if the number is longer than 8 characters, like 1234567890?

I think there are a lot of corner cases lurking around in this problem ... :)

-- Hofmator

  • Comment on Re4: Rounding to a Given Number of Significant Figures Rather Than Decimal Places

Replies are listed 'Best First'.
Re: Re4: Rounding to a Given Number of Significant Figures Rather Than Decimal Places
by dragonchild (Archbishop) on Jan 13, 2003 at 18:30 UTC
    Hmmm ... sounds like a job for

    .

    .

    .

    Requirements-Gathering Person!

    (Or, Requirements-Revising Person, as the case may be...)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.