Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
NISP - Planning ID Unit Test
binds
q1q0
Working for neg
1
Perfect neg float bin multiplier
Trail
Dec to binary addition
test
Bin mul float
Please log in to post a comment.