By accident I came across this simple math equation which PowerShell gets wrong.   PS 99.804-99.258 0.546000000000006  PS 10.804-10.258 0.546000000000001   This made me curious and I tried some different calculators and most Calculator gets it right and return  0.546   And:  PS 1.804-1.258 0.546   is correct too. But I found other calculators that also returned wrong results:  0.54600000000001 0.545999999999999999 0.5460000000000065   Why does this happen and how can I get the correct result in PowerShell?
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
Sum of the series:$\frac{1}{1\cdot 2}+\frac{1\cdot3}{1\cdot2\cdot3\cdot4}+\cdots$ I have a question where i couldn't find any clue. The question is  $$\frac{1}{1\cdot 2}+\frac{1\cdot3}{1\cdot2\cdot3\cdot4}+\frac{1\cdot3\cdot5}{1\cdot2\cdot3\cdot4\cdot5\cdot6}+\cdots$$  I could get the general term as $t_n=\frac{1\cdot3\cdot5\cdot7\cdots(2n-1)}{1\cdot2\cdot3\cdot4\cdot5\cdot6\cdots2n}$  I have also tried it to form the sequence in the telescopic form.But couldn't get. Any hint will be appreciated. How to Truncate a string in PHP to the word closest to a certain number of characters? I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage.  The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters.  I could use substr() to chop off the text at 200 chars, but the result would be cutting off in the middle of words-- what I really want is to chop the text at the end of the last word before 200 chars. I am trying to create the following trigger:      CREATE TRIGGER update_customers AFTER INSERT ON wp_usermeta     FOR EACH ROW      BEGIN             if new.wp_metakey = first_name then insert into test_customer(first_name) values (new.wp_meta_value);     END   I keep getting a 1064 error that says, "You have an error in your SQL syntax; check the manual that corresopons to your MySQL server version for the right syntaxt to use near " at line 5"  What am I doing wrong? Continuity of function mapping connected set to connected set My son got MineCraft PC for his birthday.  The account is under my e-mail and he has a name in the game (my terminology may be off as i do not play the game).  My other son would also like to play MineCraft, but have his own name (character???).  Can that be done?  It doesn't seem logical that I'd have to download 2 Minecraft games.  Please let me know how this works. What is the difference between \em and \emph? What is the difference between \emph{...} and {\em ...}?  When to use each of them? I've installed Ubuntu 14.04 and I'm experiencing a fuzzy/blurry screen and bad support for multiple screens.  I realized that Ubuntu installs nouveau as default, but I need to install nvidia drivers, so I tried this:   sudo apt-add-repository ppa:ubuntu-x-swat/x-updates apt-get update apt-get install nvidia-current apt-get upgrade       Now that nvidia is installed, you need to blacklist the nouveau driver   so it don’t pop out when you will reboot. Create or edit the following   file:  nano /etc/modprobe.d/blacklist-nouveau.conf       …and add these lines at the end:  blacklist nouveau blacklist lbm-nouveau options nouveau modeset=0 alias nouveau off alias lbm-nouveau off    I checked via the software &amp; updates if nvidia driver got installed successfully, and it says the driver installed is nvidia 304.117  I then tried to run:  lshw -c video | grep 'configuration'   and the result is that the driver is still nouveau:  configuration: driver=nouveau latency=0   So how do I install and use the nvidia drivers? Feed randomly gone on SE Android app SE Android App Version: 1.0.84  There is a display issue in the Feed section. The Earlier today, the below sections and the post title are not visible.  There is no exact steps to reproduce. It doesn't happen when the app is initializing. But if you open the Stack Exchange app, navigate to some other apps, then come back after few minutes, I can see this issue (but not all the time).  When the issue is there, if I manually click the Feed option in the navigation sidebar, the display issue is fixed.  I have recorded the issue: Why should boostrap sample size equal the original sample size? When searching the internet on the sample size of for boostrap samples I generally find that the size should equal the original sample size. However, I can't find any explanation on why this should be the case.   In what way is it bad to use a smaller sample size? Is it always better to use a larger sample size?   Some of the sites which report this: Do the 3 Doctors remember that they saved Gallifrey after 'Day of the Doctor'? I've read several posts and I've seen one that says before it was Eleven's turn to take part in the events of 'Day of the Doctor', Gallifrey was most certainly destroyed, and when it came to his turn he re-wrote history and saved Gallifrey. But I've rewatched 'Day of the Doctor' recently and the War Doctor asks if he'll remember saving Gallifrey and the Doctor says no. So I'm a bit confused, I don't want to think that the War Doctor or the 10th Doctor have lost their memories after saving Gallifrey and their life of saying they destroyed Gallifrey was a lie. So did they really remember? JSP in /WEB-INF returns "HTTP Status 404 The requested resource is not available" How can I correct a reviewer's opinion? My edit to an answer was accepted by two of the three reviewers, with the third rejecting with a claim that part of my edit was incorrect.  In fact, my proposed edit was entirely and demonstrably correct, and the reason given for rejecting is invalid.  How can I let that reviewer know about their error, and have them change their review to "Accept" - changing stats for both of us?  Please note:  This is not the same question as asking for an appeal of an edit that was rejected.  It's asking what I can do about one of the three reviewers, a dissenter who voted against my edit based on their incorrect information. Looking to Identify Book that has a large Leviathan type ship on the front The cover has a large Leviathan type ship on the front.   It is set in deep space as the people on said ship have been living there for generations. They come across an abandoned ship and set out to check it out. There are several traps but it seems to be a human ship and they even find a lone woman. Unfortunately she turns out to be an alien and attacks. They end up on a planet where a factory/warehouse is found to contain bodies, they think were eaten/experimented on by the aliens. I thought the book was called Leviathan but can't seem to find it anywhere. I seemed to be an older book from the golden age maybe even up into the 70's but I haven't had any luck yet. Any help I could get finding this would be great,thanks. What do the nomodeset, quiet and splash kernel parameters mean? What do Kernel command line parameters (also also known as boot options) mean?  When you go to Ubuntu (or better, GRUB) options, you have things like nomodeset, quiet and splash. What do these options mean?  I am also interested in other parameters and would be interested to see descriptions of any kernel parameter (like acpi), but these are not essential. Issue in evaluating the performance of my "clustering algorithm" using NMI, ARI when the "ground truth" is available? Did Obi-Wan Kenobi ever become more powerful? In Star wars: IV A New Hope, Obi-Wan says to Darth Vader:     You can't win, Darth. If you strike me down, I shall become more powerful than you could possibly imagine.    What did he mean by this? Was he bluffing? Was he alluding to him being able to help Luke as a Force Ghost? Or was he talking on behalf of The Force? Determining confidence interval with one observation (for Poisson distribution) What do you call a person who started something that is later followed by everyone? For example, someone started to stay late at night till 8 p.m. and later everyone started to stay till 8 p.m.. When can I make opportunity attacks? What provokes an opportunity attack?  In 3.X moving out of a threatened square, standing up from prone, casting a spell (unless cast defensively), or making a ranged attack provoked, while in 4e moving out of a threatened square or making a ranged/area attack provoked. There are two schools of thought on how to best extend, enhance, and reuse code in an object-oriented system:   Inheritance: extend the functionality of a class by creating a subclass. Override superclass members in the subclasses to provide new functionality. Make methods abstract/virtual to force subclasses to "fill-in-the-blanks" when the superclass wants a particular interface but is agnostic about its implementation. Aggregation: create new functionality by taking other classes and combining them into a new class. Attach an common interface to this new class for interoperability with other code.   What are the benefits, costs, and consequences of each? Are there other alternatives?  I see this debate come up on a regular basis, but I don't think it's been asked on  Stack Overflow yet (though there is some related discussion). There's also a surprising lack of good Google results for it.