diff options
author | senator <senator> | 2009-11-16 10:29:50 +0000 |
---|---|---|
committer | senator <senator> | 2009-11-16 10:29:50 +0000 |
commit | 7ef11f2b5516908408597b7878077615be92c692 (patch) | |
tree | f948abe70bb0ccd2f02c4594933dadaa9d5c9374 /server/xml | |
parent | 7a94c424fda908c93331e378e209866b3e2d7e77 (diff) |
Corrected decimal error in keratometri macro
Diffstat (limited to 'server/xml')
-rw-r--r-- | server/xml/macros/keratometri-1.0.xml | 8 |
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 < 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 < 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 |