lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It is the case under Windows when using MSVCRT:

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
C:\Users\Peter>lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> =tostring(1/0)
1.#INF

On Thu, Jan 22, 2009 at 6:10 PM, Rob Kendrick <lua-l@nun.org.uk> wrote:
> On Thu, 22 Jan 2009 16:35:49 +0000
> Peter Cawley <lua@corsix.org> wrote:
>
>> "1.#INF" is the result of tostring(1 / 0)
>
> Am I missing something?  When is this the case?  On none of the UNIX
> systems I've tried this on do I get anything other than the string
> "inf", which is what I was expecting.
> --
> B.
>