Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Arithmetic-Integer/HicEst/arithmetic-integer-1.hicest
Normal file
13
Task/Arithmetic-Integer/HicEst/arithmetic-integer-1.hicest
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
DLG(Edit=A, Edit=B, TItle='Enter numeric A and B')
|
||||
WRITE(Name) A, B
|
||||
WRITE() ' A + B = ', A + B
|
||||
WRITE() ' A - B = ', A - B
|
||||
WRITE() ' A * B = ', A * B
|
||||
WRITE() ' A / B = ', A / B ! no truncation
|
||||
WRITE() 'truncate A / B = ', INT(A / B) ! truncates towards 0
|
||||
WRITE() 'round next A / B = ', NINT(A / B) ! truncates towards next integer
|
||||
WRITE() 'round down A / B = ', FLOOR(A / B) ! truncates towards minus infinity
|
||||
WRITE() 'round up A / B = ', CEILING(A / B) ! truncates towards plus infinity
|
||||
WRITE() 'remainder of A / B = ', MOD(A, B) ! same sign as A
|
||||
WRITE() 'A to the power of B = ', A ^ B
|
||||
WRITE() 'A to the power of B = ', A ** B
|
||||
12
Task/Arithmetic-Integer/HicEst/arithmetic-integer-2.hicest
Normal file
12
Task/Arithmetic-Integer/HicEst/arithmetic-integer-2.hicest
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
A=5; B=-4;
|
||||
A + B = 1
|
||||
A - B = 9
|
||||
A * B = -20
|
||||
A / B = -1.25
|
||||
truncate A / B = -1
|
||||
round next A / B = -1
|
||||
round down A / B = -2
|
||||
round up A / B = -1
|
||||
remainder of A / B = 1
|
||||
A to the power of B = 16E-4
|
||||
A to the power of B = 16E-4
|
||||
Loading…
Add table
Add a link
Reference in a new issue