summaryrefslogtreecommitdiff
path: root/lowlevelunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-08-07 10:28:23 +0200
committerErich Eckner <git@eckner.net>2015-08-07 10:28:23 +0200
commit08119984085b6c61829c23238ef4dd9f1f5acade (patch)
tree918038a75307c1083825586fb113fd58092c43c2 /lowlevelunit.pas
parentb4eeb13fb316b16690d6400df2fcd73fd32b9133 (diff)
downloadunits-08119984085b6c61829c23238ef4dd9f1f5acade.tar.xz
max fuer tGenauigkeit eingefuegt
Diffstat (limited to 'lowlevelunit.pas')
-rw-r--r--lowlevelunit.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas
index feeea4d..a887b58 100644
--- a/lowlevelunit.pas
+++ b/lowlevelunit.pas
@@ -50,6 +50,7 @@ function mitte(s1,s2: string): string;
function myFloatToStr(x: extended): string; overload;
function myFloatToStr(x: extended; ex: string): string; overload;
function myStrToFloat(s: string): extended;
+function max(g1,g2: tGenauigkeit): tGenauigkeit; overload;
function floattostrtrunc(f: extended; dig: longint; laessig: boolean): string;
function binOpPos(op: char; s: string): integer;
@@ -353,6 +354,11 @@ begin
result:=-result;
end;
+function max(g1,g2: tGenauigkeit): tGenauigkeit;
+begin
+ if g1>g2 then result:=g1
+ else result:=g2;
+end;
// allgemeine Funktionen *******************************************************