In C#: double d = 0.4 - 1.2; What is d?
-
Stephane Rodriguez. wrote: (just before they rebranded the JVM into the CLR and sold it like a new development platform What a pile of steamy, stinkin' sh... rubish! This is nothing more than your typical anti-microsoft rant, come on give it break! Provide some useful feedback or abstain for crying out loud! :mad:
The nice thing about C++ is that only your friends can handle your private parts.
You have to prove I am wrong. Watch rotor, compare it to the Sun JVM. Amazingly similar isn't it? Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
-
Stephane Rodriguez. wrote: blah, blah, blah, MS EVIL, blah, blah Here's an e-quarter () - call someone who cares. Then you can use the change to buy a notebook where you record the amount of time you spend whining and complaining about Microsoft and the amount of time you spend actually trying to improve the situation and do a comparitive study and post it on slashdot and make a BIGGER frigging pretentious image in your signature and form anti-MS demonstrations and die happy knowing that you haven't really done a single worthwhile thing in your whole miserable existence other than slightly annoy a whole bunch of people. Worst-case scenario, of course. Eco
Eco Jones wrote: miserable existence ??? I have a full-time job, and I have a full-time life. I also enjoy programming on personal projects using a bunch of technologies and languages. Currently I am being caught in text-rendering and image effects à la Longhorn. Surprised? Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
-
You have to prove I am wrong. Watch rotor, compare it to the Sun JVM. Amazingly similar isn't it? Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
I've never checked the source code for Sun's JVM and have barely investigated Rotor. And... Rotor is NOT the same as .NET's CLR.
The nice thing about C++ is that only your friends can handle your private parts.
-
Eco Jones wrote: miserable existence ??? I have a full-time job, and I have a full-time life. I also enjoy programming on personal projects using a bunch of technologies and languages. Currently I am being caught in text-rendering and image effects à la Longhorn. Surprised? Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
Stephane Rodriguez. wrote: Surprised? Yes, with all this talk of programming, I thought you were a rodeo clown. http://dictionary.reference.com/search?q=sarcasm[^] Reading your resume was really boring. If you really want to defend your existence to me or someone else who will almost certainly pay attention and truly cares about what you have to say, next time pass on some hilarious anecdotes of your life and maybe end it off with some kind of inspirational song. http://dictionary.reference.com/search?q=sarcasm[^]
-
I've never checked the source code for Sun's JVM and have barely investigated Rotor. And... Rotor is NOT the same as .NET's CLR.
The nice thing about C++ is that only your friends can handle your private parts.
Yes rotor and the the .NET CLR have not the same baseline. But it's 99% the same. In fact rotor is only the JVM, while the actual CLR also includes winforms, asp.net, ... You've got to read Chris Brumme's weblog (CLR guy) and the amount of work his team is doing to have Rotor face to face with the CLR releases. Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
-
Yes rotor and the the .NET CLR have not the same baseline. But it's 99% the same. In fact rotor is only the JVM, while the actual CLR also includes winforms, asp.net, ... You've got to read Chris Brumme's weblog (CLR guy) and the amount of work his team is doing to have Rotor face to face with the CLR releases. Taking advantage of InternetExplorer to steal user's name and password. Taking advantage of InternetExplorer to steal user's clipboard.
Stephane Rodriguez. wrote: You've got to read Chris Brumme's weblog (CLR guy) and the amount of work his team is doing to have Rotor face to face with the CLR releases. I don't know where you read that Rotor is the JVM, but Chris Brumme's weblog[^] states: "I say ‘might’ because I’ve never actually looked at the Rotor sources. I’m just relying on the fact that they are a pretty faithful of a cleansed snapshot of our desktop CLR sources"
The nice thing about C++ is that only your friends can handle your private parts.
-
Stephane Rodriguez. wrote: Surprised? Yes, with all this talk of programming, I thought you were a rodeo clown. http://dictionary.reference.com/search?q=sarcasm[^] Reading your resume was really boring. If you really want to defend your existence to me or someone else who will almost certainly pay attention and truly cares about what you have to say, next time pass on some hilarious anecdotes of your life and maybe end it off with some kind of inspirational song. http://dictionary.reference.com/search?q=sarcasm[^]
-
-
Maybe you need more decimal places. What I did was: char buffer[100]; sprintf( buffer, "%20.20f", d ); ------------------------------------------ The ousted but stubbornly non-dead leader reportedly released an audiotape this weekend, ending by calling on Iraqis to, quote, "resist the occupation in any way you can, from writing on walls, to boycotting, to demonstrating and taking up arms." adding, "you know, pretty much anything I used to kill you for."
Brit wrote: more decimal places Brit wrote: sprintf( buffer, "%20.20f", d ); But according to MSDN doc, the precision is 15 digits. "%.20f" is too many!
Microsoft Specific —>
The double type contains 64 bits: 1 for sign, 11 for the exponent,
and 52 for the mantissa.
Its range is +/–1.7E308 with at least 15 digits of precision.BuggyMax
-
Brit wrote: more decimal places Brit wrote: sprintf( buffer, "%20.20f", d ); But according to MSDN doc, the precision is 15 digits. "%.20f" is too many!
Microsoft Specific —>
The double type contains 64 bits: 1 for sign, 11 for the exponent,
and 52 for the mantissa.
Its range is +/–1.7E308 with at least 15 digits of precision.BuggyMax
BuggyMax wrote: But according to MSDN doc, the precision is 15 digits. "%.20f" is too many! Well, yes, 20 is too many. But, read what MS says: "Its range is +/–1.7E308 with at least 15 digits of precision." Remember, we are storing the number as bits (i.e. base 2). When it says, "at least 15 digits" - thats a base 10 description. It says at least 15 digits, this means that in some cases it can store more, but it sounds strange to say something like "15.6 digits of precision". Note that 2^52 = 4.5*10^15, which is slightly more than 15 digits of precision, but not quite 16 digits of precision. Along the same idea, how many significant digits would you say that a char has? It stores 2^8 values, or 0-255. You might say that it stores at least two digits, but sometimes three. Again, the base-2 to base-10 conversion messes up our typical convention of "significant digits". ------------------------------------------ The ousted but stubbornly non-dead leader reportedly released an audiotape this weekend, ending by calling on Iraqis to, quote, "resist the occupation in any way you can, from writing on walls, to boycotting, to demonstrating and taking up arms." adding, "you know, pretty much anything I used to kill you for."