Lua don't have a binary operators and the math lib is your only choice to simulate binary operations.
I've added the bson.to_double and bson.from_double functions to deal with floating point conversions.
I used this ppp function as a helper to inspect elements, remove it please.
Lua don't have a binary operators and the math lib is your only choice to simulate binary operations. I've added the
bson.to_double
andbson.from_double
functions to deal with floating point conversions. I used thisppp
function as a helper to inspect elements, remove it please.