summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsenator <senator>2009-11-16 10:29:50 +0000
committersenator <senator>2009-11-16 10:29:50 +0000
commit7ef11f2b5516908408597b7878077615be92c692 (patch)
treef948abe70bb0ccd2f02c4594933dadaa9d5c9374
parent7a94c424fda908c93331e378e209866b3e2d7e77 (diff)
Corrected decimal error in keratometri macro
-rw-r--r--server/xml/macros/keratometri-1.0.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/xml/macros/keratometri-1.0.xml b/server/xml/macros/keratometri-1.0.xml
index 9c7a611..581dadf 100644
--- a/server/xml/macros/keratometri-1.0.xml
+++ b/server/xml/macros/keratometri-1.0.xml
@@ -34,10 +34,10 @@
if ( rd1 &lt; rd2 )
then
- ry1 = rd1 - rd2
+ ry1 = tonumber(string.format('%.02f', rd1 - rd2))
ry2 = rx1
else
- ry1 = rd2 - rd1
+ ry1 = tonumber(string.format('%.02f', rd2 - rd1))
ry2 = rx2
end
@@ -73,10 +73,10 @@
if ( ld1 &lt; ld2 )
then
- ly1 = ld1 - ld2
+ ly1 = tonumber(string.format('%.02f', ld1 - ld2))
ly2 = lx1
else
- ly1 = ld2 - ld1
+ ly1 = tonumber(string.format('%.02f', ld2 - ld1))
ly2 = lx2
end