diff options
Diffstat (limited to 'tests/arith.tests')
-rw-r--r-- | tests/arith.tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/arith.tests b/tests/arith.tests index 913efbe0..fa56ad75 100644 --- a/tests/arith.tests +++ b/tests/arith.tests @@ -267,3 +267,11 @@ echo $x $y # These are errors echo $((a b)) ((a b)) + +n=42 +printf "%d\n" $n +printf "%i\n" $n +echo $(( 8#$(printf "%o\n" $n) )) +printf "%u\n" $n +echo $(( 16#$(printf "%x\n" $n) )) +echo $(( 16#$(printf "%X\n" $n) )) |