Wasn't it Tom Melly who wrote:
>Here's an oddity. The modified code below outputs this to #debug:
>
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>-1.#J
>
>Huh?
I think it's trying to say "-1.#IND", indicating an invalid number.
Because you only allowed it to display 2 places of decimals, it has
rounded up the "I" to "J". In the same way, if you allow 1 or 3 places
of decimals it will round the "#" up to "$" or the "N" up to "O"
respectively.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|