bit.DecToBin(x) under b4a

schimanski

Well-Known Member
Licensed User
Longtime User
Hello together!

Is there something like this under b4A?

Code: Copy
bit.DecToBin(X)
bit.BinToDec(X)
Format(X,"d4")

Thanks for answer....
 
Thanks, Erel!

Bit.ToBinaryString and ParseInt runs fine. But I'm looking also for a format- function like Format(X,"d4"). I want to fill a binärcode with additional zeros. For example:

'1101' to '00001101'

Is that possible?

rgds
 
Upvote 0
Thanks, agraham!!

I tried it with this code:

Code: Copy
textbox4.Text=NumberFormat("1", 8 ,0)

Must the solution not be '00000001'???

I have '00,000,001':confused:
 
Upvote 0
Back
Top