summaryrefslogtreecommitdiff
path: root/server/xml/macros/keratometri-1.0.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/keratometri-1.0.xml')
-rw-r--r--server/xml/macros/keratometri-1.0.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/xml/macros/keratometri-1.0.xml b/server/xml/macros/keratometri-1.0.xml
index 76874b5..9c7a611 100644
--- a/server/xml/macros/keratometri-1.0.xml
+++ b/server/xml/macros/keratometri-1.0.xml
@@ -7,7 +7,7 @@
end
function tostr(value)
- value = string.format('%.2f', value)
+ value = string.format('%.02f', value)
value = string.gsub(value, '\\.', ',')
return value
end
@@ -29,15 +29,15 @@
rx2 = rx1 - 90
end
- rd1 = tonumber(string.format('%.2f', 337.5 / rr1))
- rd2 = tonumber(string.format('%.2f', 337.5 / rr2))
+ rd1 = tonumber(string.format('%.02f', 337.5 / rr1))
+ rd2 = tonumber(string.format('%.02f', 337.5 / rr2))
if ( rd1 < rd2 )
then
ry1 = rd1 - rd2
ry2 = rx1
else
- ry1 = rd2 - rd1
+ ry1 = rd2 - rd1
ry2 = rx2
end
@@ -68,15 +68,15 @@
lx2 = lx1 - 90
end
- ld1 = tonumber(string.format('%.2f', 337.5 / lr1))
- ld2 = tonumber(string.format('%.2f', 337.5 / lr2))
+ ld1 = tonumber(string.format('%.02f', 337.5 / lr1))
+ ld2 = tonumber(string.format('%.02f', 337.5 / lr2))
if ( ld1 < ld2 )
then
ly1 = ld1 - ld2
ly2 = lx1
else
- ly1 = ld2 - ld1
+ ly1 = ld2 - ld1
ly2 = lx2
end