Commit Graph

63 Commits

Author SHA1 Message Date
Jonas Maebe
7433e0ef89 * replaced a trunc() with an int() call (because its result is compared
with a float as well)

git-svn-id: trunk@10375 -
2008-02-21 13:18:56 +00:00
Jonas Maebe
337e53e712 * fixed mantis #10519 (when rounding for the first decimal digit and
it is at the same time the last, append the 0)

git-svn-id: trunk@9623 -
2008-01-03 22:14:54 +00:00
Jonas Maebe
4f23f216f6 * fixed mantis #9695 introduced by the fix in r7959
git-svn-id: trunk@8494 -
2007-09-15 21:15:06 +00:00
Jonas Maebe
1eb1bf4c42 * fixed str(extended(0.005):0:2) and related problems
git-svn-id: trunk@7959 -
2007-07-05 15:25:01 +00:00
Jonas Maebe
e44a9ca4cb * fixed mantis 8434 (wrong precision used in case of |number| < 1,
which when multiplied by 10^x goes from 0.9y to 1.0z, and if a
    specific presision is specified)

git-svn-id: trunk@6692 -
2007-03-01 14:30:55 +00:00
yury
61f0f0b793 * define FPC_DOUBLE_HILO_SWAPPED for ARM CPU if needed to properly handle doubles in RTL.
git-svn-id: trunk@5439 -
2006-11-21 21:24:01 +00:00
Jonas Maebe
117774e006 * fixed web bug #7105
git-svn-id: trunk@5068 -
2006-10-29 19:22:04 +00:00
Jonas Maebe
9a08cdccf0 * several changes of var parameters into out parameters to avoid
useless warnings: code parameter of val(), destination of str(),
    destinations of ansi2wide and wide2ansi

git-svn-id: trunk@2041 -
2005-12-23 22:25:26 +00:00
Jonas Maebe
2cb88de19b * fixed missing digit when printing a double whose significant digits are
all before the floating point on a cpu/fpu supporting maximally double
    precision
  * fixed test in tw1792a for double precision fpu's (they can print one
    digit less for double precision numbers than 80 bit fpu's)

git-svn-id: trunk@1446 -
2005-10-17 20:33:07 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
peter
b68af1b0e3 * post 2.0.0 fixes from cvs
git-svn-id: trunk@7 -
2005-05-16 20:59:02 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
olle
d988d8d694 * Fixed typo 2005-05-14 11:54:00 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
peter
3094258825 * removed warnings 2004-05-31 20:25:04 +00:00
florian
72a8ac8dd7 * "improved" behavior of real2str for arm, still needs fixing 2004-03-13 18:47:57 +00:00
florian
5fe2004441 * fixed some arm related real stuff 2004-03-13 18:33:52 +00:00
Jonas Maebe
65cc0f990f * fixed NaN/Inf detection for single/double 2003-12-29 19:19:21 +00:00
peter
bbf9d2f9c6 * currency support
* dropped fixed16/32 support
2003-12-08 17:45:00 +00:00
Jonas Maebe
c8e23c4e58 * fixed web bug #2643 2003-10-26 16:56:44 +00:00
florian
eeca30ca30 * fixed Nan and +Inf string 2003-09-06 17:06:59 +00:00
florian
c9a6908a0f * fixed real2str for -Inf and Inf 2003-09-06 16:48:35 +00:00
Jonas Maebe
4e40e71cbb * moved all loal variables to one block (necessary for ppc until nested
procedures are properly supported)
2003-05-16 23:22:31 +00:00
Jonas Maebe
60183c693c * fixed web bug #2131 2002-10-04 16:41:17 +00:00
peter
01dfac4a4e * old logs removed and tabs fixed 2002-09-07 15:06:34 +00:00
peter
bc74424ab1 * m68k updates merged 2001-07-29 13:49:15 +00:00
peter
69b8e3ad44 * big endian updates (merged) 2001-06-13 18:32:05 +00:00
peter
802acf6940 * m68k updates 2001-04-23 18:25:44 +00:00
michael
650fbb86aa + removed logs 2000-07-13 11:32:24 +00:00
michael
e7aca136a1 + Initial import 2000-07-13 06:29:38 +00:00
Jonas Maebe
ffbedb6ec9 * changed precision for extended back (otherwise strreal2.pp in
tests/test failed)
2000-07-07 18:03:08 +00:00
florian
aa3e0fbe87 * fixed writing of comp and extended: the precision of comp was to little
while it was too high for extended
2000-07-06 21:09:45 +00:00
Jonas Maebe
d9c608a373 + $maxfpuregisters 0 for i386 in systemh (to avoid requiring too much
empty FPU registers for sysstem routines
  * fixed bug in str_real when using 0
  * str_real now doesn't call exp() anymore at runtime, so it should
    require less free FPU registers now (and be slightly faster)
2000-03-26 11:36:28 +00:00
Jonas Maebe
7e63fc9d28 * fixed more bugs due to inexact nature of FPU 2000-03-21 12:00:30 +00:00
Jonas Maebe
df004d997b * fixed rounding bugs with certain formatting parameters in str_real
* fixed tbs0218 so it compares both results only until max precision
2000-03-17 20:20:33 +00:00
Jonas Maebe
02ec1d0d3b * fixed rounding problem when writing out single/double type vars 2000-03-05 09:41:05 +00:00
Jonas Maebe
c535d675f5 * sign was not written in some cases 2000-03-02 07:35:57 +00:00
peter
66ea55dd7c * removed warnings/notes 2000-02-27 14:40:40 +00:00
Jonas Maebe
51bbb51a06 * fix for lost precision because sometimes the correction value was
larger than the number to be corrected
  * incompatibility with TP's output fixed
2000-02-26 18:53:11 +00:00
Jonas Maebe
0b02714817 + new str_real which is completely TP compatible regarding output
format and which should have no rounding errors anymore
2000-02-26 15:49:40 +00:00
peter
6b66a55cd6 * truncated log 2000-02-09 16:59:28 +00:00
peter
6c15031ffd * moved halt to system.inc
* syslinux doesn't use direct asm anymore
2000-02-09 12:17:51 +00:00
Jonas Maebe
bc9c4771c0 + support for NaN's, cleaner support for Inf 2000-01-17 13:00:51 +00:00
daniel
ec29a31834 * copyright 2000 2000-01-07 16:41:28 +00:00
pierre
c1f893a1d1 * Infinite loop for infinite value problem fixed 1999-11-28 23:57:23 +00:00
peter
dd3688a927 * another fix for precision 1999-11-03 09:54:24 +00:00
pierre
955e7c0175 * problem of last commit for large d values corrected 1999-11-03 00:55:09 +00:00
peter
1829357f4e * better precisio by dividing only once with a calculated longint
instead of multiple times by 10
1999-11-02 15:05:53 +00:00
peter
a4b08bdef9 * small speed improvements 1999-08-03 21:58:44 +00:00