35 Replies
what am i
doing
wrong
im tired
why do you have one method responsible for both adding numbers and converting them to binary?
and is this specifically something you have to write yourself or do you just need it formatted in binary?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
no
just a personal project
idk how to convert to binary
that's why
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
i don't think so
as of .NET 8 it looks like there's a string format specifier for binary
1234.ToString("B")
meaning?
meaning if you use .NET 8 you can just do that
ToString meaning add B to the beginning of the string
no
meaning "convert 1234 to binary"
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
TeBeCo
REPL Result: Success
Result: string
Compile: 492.113ms | Execution: 23.424ms | React with ❌ to remove this embed.
TeBeCo
isn't there method in dotnet to change a number fom a base to another ?
Quoted by
<@689473681302224947> from #denary -> binary (click here)
React with ❌ to remove this embed.
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
WTH
💀
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
i try to forget
Convert
existsUnknown User•13mo ago
Message Not Public
Sign In & Join Server To View
int value = 12353429;
b_value = Convert.ToString(value, 2);
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
?
mind showing the hex thing
you mean the base64 conversions?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
mind correcting
as in
16 = 10
F0
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
what did i do wrong here tho
what's 2?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ah
TeBeCo
REPL Result: Success
Console Output
Compile: 627.605ms | Execution: 94.631ms | React with ❌ to remove this embed.
TeBeCo
REPL Result: Success
Console Output
Compile: 563.441ms | Execution: 32.679ms | React with ❌ to remove this embed.
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
thank you 🙂
!close
Closed!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.