Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Display values
Display values
2004-06-12, 10:55 AM #1
Hi!
I'm just wondering... I have an int, somewhere in a COG, and I wish to print it in the following ways: Bin, Oct, Dec, and Hex... Is this possible?

/Edward
Edward's Cognative Hazards
2004-06-12, 2:42 PM #2
Not really.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-12, 4:22 PM #3
Possibly, except probably for the hex version of it, since it has characters as well as numerals. It would be one funky code though.

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-06-13, 12:27 AM #4
Yeah, bin oct dec are possible, with some deeper understanding of mathematics. Hex maybe with ASCIIStrings, but that would be a major pain to make.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-06-13, 10:32 PM #5
I suppose if you used JKConcatUniStrings (I know that isn't the verb name, but it's some sort of similar arrangement... [http://forums.massassi.net/html/redface.gif]) and the other types of verbs in that set, then you may be able to combine a complete String version of all the variables you wish to print. However, as Slaw pointed out, hex would be difficult due to the sort of "mixed" mode (can't think of an adequate description for hex really - it's still too early [http://forums.massassi.net/html/wink.gif]) and I think the mathematics would need to be thoroughly understood to make this work.

Not that I'm saying you don't know math, Edward [http://forums.massassi.net/html/tongue.gif] [http://forums.massassi.net/html/wink.gif]. Hope this helps [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX
"jackpot is an evil evil man... so evil, in fact, that he's awesome." - Seb

"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!