summaryrefslogtreecommitdiff
path: root/matheunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-07-29 13:34:32 +0200
committerErich Eckner <git@eckner.net>2015-07-29 13:34:32 +0200
commit79ea0c95754ef0b7ba05917ac68809c396995f09 (patch)
tree87dcce5e904a3246dac4929252e1ce565d204e9b /matheunit.pas
parent4a20e55ed3f722b3f66249a6e3c5c4d2ae457367 (diff)
downloadunits-79ea0c95754ef0b7ba05917ac68809c396995f09.tar.xz
exprToFLoat versteht jetzt auch negative Zahlen ;-)
Diffstat (limited to 'matheunit.pas')
-rw-r--r--matheunit.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/matheunit.pas b/matheunit.pas
index 9823391..9525fe3 100644
--- a/matheunit.pas
+++ b/matheunit.pas
@@ -468,7 +468,7 @@ begin
neg:=startetMit('-',s);
cbv:=false;
for i:=1 to length(s) do
- cbv:=cbv or not (s[i] in ['0'..'9','.',',','e','E']);
+ cbv:=cbv or not (s[i] in ['-','0'..'9','.',',','e','E']);
if not cbv then result:=strtofloat(s)
else if not kvs.extract(s,result) then begin
if st then result:=1