Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Add Dec2bin
#tclsh 8.6 proc dec2bin int { set binRep [binary format c $int] binary scan $binRep B* binStr return $binStr } set a [ dec2bin 10 ] puts $a set b [ dec2bin 20 ] puts $b puts [expr "0b$a + 0b$b" ]
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
zz
NISP - Planning ID Unit Test
Trail
wewew
Longest common subsequence
Different factorial implementations
Perfect decimal to binary add
trail multiplication
1
Trail
Please log in to post a comment.