* contrib/hbgd/gdbarcod.prg
% AllTrim() removed from around Str( n, 1 )
* TOFIX? added to gdbarcod.prg in one place where
Str( n, 1 ) is used and the value can be 10.
; Francesco, can you look at it?
* contrib/gtwvg/tests/dyndlgs.prg
* extras/hbxlsxml/tests/example.prg
* tests/ac_test.prg
* tests/aliaslck.prg
* tests/gtstdtst.prg
* tests/rto_get.prg
* tests/rto_tb.prg
* tests/teststr.prg
* *LTRIM(STR()) -> hb_ntos()
including cases where a size limit was used, but
it was unnecessary.
#define added for Clipper where needed.
* contrib/hbnf/ntow.prg
% LTrim( Str( n, 0 ) ) -> hb_ntos()
zero is currected to 10 by runtime.
Plus minor opt.
* contrib/hbnf/acctmnth.prg
* contrib/hbnf/acctqtr.prg
* contrib/hbnf/acctweek.prg
* contrib/hbnf/dayofyr.prg
* contrib/hbnf/month.prg
* contrib/hbnf/qtr.prg
* contrib/hbnf/week.prg
% PAD(*TRIM(STR()),,"0") -> StrZero()
* extras/hbxlsxml/xlsxml_s.prg
* extras/hbxlsxml/xlsxml_y.prg
* extras/hbxlsxml/xlsxml.prg
* website/samples/dates3.prg.html
* website/samples/dates4.prg.html
* website/samples/testcgi.prg.html
* website/samples/testhtml.prg.html
* hb_osnewline() -> hb_eol()
121 lines
1.3 KiB
Plaintext
121 lines
1.3 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
PROCEDURE Main()
|
|
|
|
? "Running with SET FIXED OFF (the default setting):"
|
|
?
|
|
test()
|
|
__ACCEPT( "Pause before running again with SET FIXED ON: " )
|
|
? "Running with SET FIXED ON:"
|
|
?
|
|
Set( _SET_FIXED, "ON" )
|
|
test()
|
|
|
|
RETURN
|
|
|
|
PROCEDURE test()
|
|
|
|
LOCAL a := 15.1
|
|
LOCAL b := 10.0002575
|
|
LOCAL nI, c, d
|
|
|
|
?? "1: "
|
|
?? 10
|
|
?? a
|
|
?? -a
|
|
?? b
|
|
?? -b
|
|
?
|
|
|
|
?? "2: "
|
|
?? a + b
|
|
?? a - b
|
|
?? a * b
|
|
?? a / b
|
|
?
|
|
|
|
?? "3: "
|
|
?? a % b
|
|
?? a ** b
|
|
?
|
|
|
|
c := a * b
|
|
d := b * a
|
|
?
|
|
|
|
?? "4: "
|
|
?? Str( c )
|
|
?? Str( d )
|
|
?
|
|
|
|
?? "5: "
|
|
?? Str( c + d )
|
|
?? Str( c - d )
|
|
?? Str( c * d )
|
|
?? Str( c / d )
|
|
?
|
|
|
|
?
|
|
?? "6: "
|
|
?? a + b + c
|
|
?? c - b - a
|
|
?? b * a * c
|
|
?? b * a * c * d
|
|
b := 1.000213
|
|
?? b * b * b * b * b * b * b
|
|
?
|
|
|
|
FOR nI := 1 TO 20
|
|
?
|
|
?? Str( 6 + nI ) + ": "
|
|
?? 10 ** nI + ( 1.02 * 1.02 )
|
|
NEXT
|
|
?
|
|
|
|
?
|
|
?? "27: "
|
|
?? Str( a ), a
|
|
?
|
|
|
|
?? "28: "
|
|
?? Str( b ), b
|
|
?
|
|
|
|
?? "29: "
|
|
?? Str( b, 15 )
|
|
?
|
|
|
|
?? "30: "
|
|
?? Str( b, 20, 5 )
|
|
?
|
|
|
|
?? "31: "
|
|
?? Str( b, 20, 10 )
|
|
?
|
|
|
|
?? "32: "
|
|
?? Str( b, 5, 10 )
|
|
?
|
|
|
|
?? "33: "
|
|
?? Str( b, 20, -10 )
|
|
?
|
|
|
|
?? "34: "
|
|
?? Str( b, -12, 7 )
|
|
?
|
|
|
|
?? "35: "
|
|
?? Str( b, 0 )
|
|
?
|
|
|
|
?
|
|
a := 15.1004
|
|
?? "36: "
|
|
?? Str( a ), a
|
|
?
|
|
|
|
RETURN
|