Skip to content

Commit

Permalink
Example script for digit/numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jun 30, 2024
1 parent c4f3b1c commit 949dc5a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/example_28.utx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/local/bin/uartix
# Different number bases examples.

binary_num = 0b1101;
trinary_num = 0t102;
octal_num = 0c17;
hex_num = 0xf;

render binary_num + "\r\n";
render trinary_num + "\r\n";
render octal_num + "\r\n";
render hex_num + "\r\n";

0 comments on commit 949dc5a

Please sign in to comment.