Added some more HEX (dec_to_hex()) to Fun. (0.37.15)
This commit is contained in:
parent
9577f26e23
commit
37c5ae6f58
5 changed files with 66 additions and 2 deletions
19
examples/test_include.fun
Normal file
19
examples/test_include.fun
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env fun
|
||||
|
||||
/*
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*
|
||||
* Added: 2025-12-18
|
||||
*/
|
||||
|
||||
#include <hex.fun>
|
||||
print(dec_to_hex(255))
|
||||
|
||||
/* Expected output:
|
||||
ff
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue