[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lbc: nil returned while number divided by 0
- From: Yuri Kozlov <kozlov.y@...>
- Date: Thu, 13 May 2010 18:40:22 +0400
Hello.
I using lbc from
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
yuray@yuray:~/$ lua
Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> =1/0
inf
> b=1
> =b/0
inf
> require"bc"
> a = bc.number('1')
> =a/0
nil
Why nil?
If lbc has redefined divide operator, it must returned inf too?
--
Regards,
Yuri Kozlov