So I have this program in which I need to compare values in 0.0X range and if I scan for example 50.21 with this little thing  scanf("%f",bill);   the value stored in var. bill is actually 50.2099990845... which messes up calculations later in program. Is there any way to turn this number into 50.210000? Thanks for your time.
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
Can a plan "age" reach zero? How do I delete a folder that's in use? Sometimes when I'm working in Windows I'll get this prompt when I try to delete a directory:    Folder In Use The action can't be completed because the folder is open in another program Close the folder and try again.   However, the folder isn't "in use" at all, and I don't have it open. So how can I delete it short of rebooting? how to read xml file from url using php I need to analyse data and am unsure whether or not I should use a multinomial logistic regression analysis or a binary logistic regression analysis. I have just conducted a latent class analysis and am interested in seeing if my variables can predict class membership. There are only two classes and so my response variable only has two categories; however the variables range from having 2 to 3 to 4 and are mostly nominal categorical data. I have windows 10 home and from time to time I see a command line window popping up for less than a second. I want to find out which process is causing that. It's not very often that this window pops up so I need some tool that can run for a long time.  Does anyone have a good idea?  Regards Tobias Using apt-get to remove packages and dependencies This question was prompted by questions about ls' -1 option and the recurring tendency of people to ask question and answers that includes processing the output of ls.   This reuse of the output ls seems understandable, e.g.: if you know how to sort a list of files with ls you might want to use the output in that way as input for something else.  If those Q&amp;A don't include a reference to the file name list produced consisting of nicely behaving file names (no special characters like spaces and newlines), they are often commented upon by someone pointing out the danger of the command sequence not working when there are files with newlines, spaces etc.  find, sort and other utilities solve the problem of communicating "difficult" file names to e.g. xargs by using an option to separate the file names with the NUL character/byte which is not a valid character in file name (the only one in addition to /?) on Unix/Linux filesystems.  I looked to the man page for ls and the output for ls --help (which has more options listed) and could not find that ls (from coreutils) has an option to specify NUL separated output. It does have a -1 option which can be interpreted as "output file names separated by newline")  Q: Is there are technical or philosophical reason why ls does not have a --zero or -0 option that would "output file names separated by NUL"?  If you do something that only outputs the file names (and not use e.g. -l) that could make sense:  ls -rt -0 | xargs -r0 …   I could be missing something why this would not work, or is there an alternative for this example that I overlooked and that is not much more complicated and/or obscure.    Addendum:  Doing ls -lrt -0 probably does not make much sense, but in the same way that find . -ls -print0 does not, so that is not a reason to not provide a -0/-z/--zero option. I have a lot of Excel sheets for all sorts of things - but none has ever acted up like this one here:    This used to be a totally normal Excel 2007 sheet which I was able to resize, maximize etc. - but not anymore. The MDI child window is fixed, both in position and size. I cannot move it around, more can I maximize it to use the full size of the screen anymore. I cannot double-click on it's title bar to maximize it either :-(  What happened? What can I do to "undo" whatever I did to it.  Any ideas? I tried to share / undo sharing, I tried to protect / unprotect the sheet - nothing seems to work... $G$ is the set of all subsets of a set $A$, under the operation of $\triangle\;$: Symmetric Difference of sets.  $A$ has at least two different elements.  I need to check if this is a group, and if it does to show if the group is abelian and/or finite.  Associativity - easy from Symmetric Difference. Identity element - empty group. Inverse element - each element is inverse to itself. Am I right?  abelian? finite? What methods can I use to infer a distribution if I know only three percentiles?  For example, I know that in a certain data set, the fifth percentile is 8,135, the 50th percentile is 11,259, and the 95th percentile is 23,611.  I want to be able to go from any other number to its percentile.  It's not  my data, and those are all the statistics I have.  It's clear that the distribution isn't normal.  The only other information I have is that this data represents government per-capita funding for different school districts.  I know enough about statistics to know that this problem has no definite solution, but not enough to know how to go about finding good guesses.  Would a lognormal distribution be appropriate?  What tools can I use to perform the regression (or do I need to do it myself)? I'm looking for all the ways to increase Friendship in Pokemon X and Y.  Note that Friendship is different from Pokemon Amie Affection; they both do different things. Polynomial contrasts for regression Unix separation of specific numbers from Column How can I separate specific numbers from a column and add it to a new file? For example, take all numbers that are "134" from column 3, I tried using   awk '$3 == 134" file.txt   but it didn't work, also tried using   awk -F, '{print $3 == 134 }' file.txt    didn't work.  Pink          132           134 Blue          189           167 Yellow        2000          134 Green         678           145 Black         789           145 White         780           135   So the new file will contain just the following   Pink          132           134 Yellow        2000          134 Book featuring a child learning from a crowdsourced AI book It has been suggested by my employer that i should get the Hepatitis B vaccine to protect myself.  I have had two of the three parts, but this is the first time i have had a vaccine in more than one session.  The vaccine is in 3 doses, each around a month apart, followed up by a blood test.  Why is the Hepatitis B vaccine split into 3, any what is the blood test for at the end? What is lock escalation? Parameterize an SQL IN clause What is the name of the horizontal division line? What is the name of the horizontal division line? Is there a name for it other than "division line? How can we move an object with zero velocity? Consider there is a box of mass $m$ at rest on the floor. Most books give an example that we need to do a work of $mgh$ to lift the box $h$ upward.  If we analyze this work done, the external force acting on the box by us should be equal to the weight of the box. Therefore the net force is zero which in turn there is no acceleration. If there is no acceleration and the initial velocity of the box is also zero, how can the box move upward? Why are there holes in the icing?