hi
is there any RPGLE command to round numbers?
if x=27.3 i want to get 27
if x=27.6 i want to get 28
is there any RPGLE command to round numbers?
if x=27.3 i want to get 27
if x=27.6 i want to get 28
d Variable1 s 2 1
d Variable2 s 2 0
C eval(h) Variable2 = Variable1
C/Exec Sql C+ Set :t1 = Ceiling(:t0) C/End-Exec C/Exec Sql C+ Set :t2 = Floor(:t0) C/End-Exec C/Exec Sql C+ Set :t3 = Round(:t0,0) C/End-Exec
Comment