Files
harbour-core/tests/round.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

23 lines
424 B
Plaintext

// Testing Harbour rounding
/* Harbour Project source code
http://harbour-project.org/
Donated to the public domain on 2001-03-08 by David G. Holm <dholm@jsd-llc.com>
*/
PROCEDURE Main()
LOCAL n, value := -5
FOR n := 1 TO 100
? ;
value, ;
Round( value, 3 ),;
Round( value, 2 ),;
Round( value, 1 ),;
Round( value, 0 )
value += 0.001
NEXT
RETURN