Safe division in LSD

5 views
Skip to first unread message

Branimir Sesar

unread,
Nov 13, 2012, 4:44:41 PM11/13/12
to lsd-...@googlegroups.com
Dear all,

I would like to use the following expression in my LSD queries

a/b < c

where a and b are integers, and c is a float. How do I do this safely
within lsd-query when b is equal to 0? When b is equal to 0, I get
"division by zero" error in my output which is annoying.

Cheers,

Brani

Branimir Sesar

unread,
Nov 14, 2012, 11:33:10 AM11/14/12
to lsd-...@googlegroups.com
As Colin Slater pointed out, a < c*b should work well. I am very
stupid... :)

B

Reply all
Reply to author
Forward
0 new messages