Nope. Just showing that an answer is not always the same under all conditions.
BinaryStringToInteger("1"+"1") = 3
BinaryStringToInteger("11") = 3
&b11 = 3
3=3
Assuming you want to stay within the restrictions of integer numbers, I can also add another restriction, that excludes all even numbers. Numbers go 1,3,5,7,9 , in which case 1+1=3, 3+3=7, 1+7=9, 1-1=-1 etc.
"Puppetmaster was our last best hope for peace. It failed.
Now it's our last best hope.. for victory!"
Imma go with Sev on this one as everything I googled show this to be incorrect. And 1+1 will always =2 even if what you're saying is correct because you're talking about a completely different equation with restrictions that are not present in 1+1. Additional information would be needed for you to even consider your equation. I never took like trig or calc but even I know the structure of the problem determines the formula used to find the answer. I'm always up to learn new stuff so if you really believe what you're saying provide some supporting links pls.
It's not a math problem at all, it's a programming problem. I explained it three posts above. There's also many (mathematical) ways 1+1 can equal something other than 2, for example in a Z%2 algebra where 1+1=0. In this case, the + is the modular addition instead of the usual arithmetic addition.
All affirmations are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
FFXI: Leviathan > Arcon
FFXIV: Selbina > Arcon Villiers
Won't work. "1" isn't 01 nor 10 in binary. The ASCII character "1" is 49 in decimal or 31H depending how you roll.
This your function would return the integer 98 as the result of combining the binary value of two "1" characters. Of course if your using unicode then the answer could be much longer.
Now if you first combined the two strings into 1 single string, then you could get it to be 11b. Yet 11b is NOT the same as (1 + 1).
Your playing semantics with math, never do that.
Last edited by saevel; 07-26-2012 at 07:47 PM.
Doing damage is for WAR's, DRK is about soloing 75 content yo.....Originally Posted by Raelix
That's a matter of implementation. "1" is a string, not a character. "1"+"1" performs string concatenation (in any reasonably language). And a string cannot be converted to a number (at least not in any meaningful way). If BinaryStringToInteger takes a string of 1s and 0s (which is what I'd assume under the name and the only thing that makes sense), then it would work. You assume it splits the string by characters and converts them to their numeric representation, which would make the function name pretty misleading (and which would differ by the underlying system).
That's his entire point. He wanted to say that 1+1=3 is valid if the + is not numerical addition but concatenation and the left-hand side of the equation is interpreted as binary.
All affirmations are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
FFXI: Leviathan > Arcon
FFXIV: Selbina > Arcon Villiers
|
|
© SQUARE ENIX FINAL FANTASY, SQUARE ENIX, and the SQUARE ENIX logo are registered trademarks of Square Enix Holdings Co., Ltd. Vana'diel , Tetra Master, PLAYONLINE, the PLAYONLINE logo, Rise of the Zilart, Chains of Promathia, Treasures of Aht Urhgan, and Wings of the Goddess are registered trademarks of Square Enix Co., Ltd. The rating icon is a registered trademark of the Entertainment Software Association. All other trademarks are the property of their respective owners. Online play requires internet connection. |