From 7ef11f2b5516908408597b7878077615be92c692 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 16 Nov 2009 10:29:50 +0000 Subject: Corrected decimal error in keratometri macro --- server/xml/macros/keratometri-1.0.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server') 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 -- cgit v1.2.3