Wrong rapresentation of Decimal Numbers in Lua
As working on manual_lens_info PR I found an issues when setting aperture value to as submenu with "Choices".
I am unable to set correct values because some values are memorized as approximation and then fail to be found in choices when converting to strings.
Test Script:
#!lua
val = {1.2,1.4,2.8,4.3,4.5,5.6}
for i = 1, 6 do
console.write(val[i])
console.write("\n")
end
console.write(2.8 * 10)
Output:
#!lua
1.2
1.399999
2.799999
4.3
4.5
5.59999
28