I have no calculations, I just converted, I need to send data in numeric type, but after conversion is not normal, why java python kotlin conversion is no problem, swift has a problem? I know the problem of computer storage accuracy, is there a way for swift to correctly convert string?   How can I make a string to a number without distortion?
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
Would a 9V alkaline power a 12V DC motor? I am thinking about buying a 12V DC motor but want to keep everything, including the motor, battery, and power switch somewhat compact. I am not very knowledgeable about these kind of things and am curious whether or not my 12V DC motor would run at all on a 9V battery. Java Generics: List, List, List Why does printf() not print anything before sleep()? I have to give a combinatorial proof of  $$\sum_{k=1}^nk{n\choose k}^2=n{2n-1\choose n}.$$  I find it difficult to solve such problems. I'm not a brilliant person and never will be so I need to have algorithms to solve most problems. Usually I won't just "see" solutions unless I have a thorough enough understanding of a theory. This is also the case here. I know what the symbols mean, but I don't see what I should count and how to obtain the identity.  I think the right-hand side counts $n$-element subsets of a $(2n-1)$-element set with one element chosen to be "special". I think I should find a partition of the set of such subsets into $n$ parts so that the left-hand side is the sum of the cardinalities of the parts. Is there $n$ of anything on the right-hand side? Well, there are $n$ choices for the "special" elements, but only after I've chosen the $n$-element subset. Otherwise I can choose the "special element" in $2n-1$ ways.  This is a homework problem so I probably shouldn't ask for a full solution. But I would like to have some guidelines for approaching such problems, perhaps based on this example. What is the single most influential book every designer should read? What is the single most influential book every designer should read? Who is the Lord, as referred to in the title? Frodo? Sauron? Someone else? Or is it more of an abstract title, not referring to a single person, like "He who wields the One Ring"? How could I place objects (buildings) on a flat surface in the BGE? I'm working on an  in BGE, and I am not sure how I could make it so you can place buildings on flat surfaces (or unless there is an easier way). I would love to know how to place buildings when you click a certain button to place it.  I don't really need anything fancy like price and stuff like that yet. I really have no idea if  is required to do this. Trying to install Ubuntu on Dell XPS 15 (9570) I have been trying to install Ubuntu on my new laptop:     Dell XPS 15 (9570)   Windows 10 Home 64bit English   8th Generation Intel(R) Core(TM) i7-8750H Processor (9M Cache, up to 4.1 GHz, 6 cores)   16GB, 2x8GB, DDR4, 2666MHz   256GB M.2 2280 PCIe Solid State Drive   NVIDIA(R) GeForce(R) GTX 1050Ti with 4GB GDDR5     I began by trying to install Ubuntu 18.04 LTS using an 8GB USB drive. The first issue I ran into was getting frozen on the bootup screen on the fourth dot. After a couple tries, I plugged in my monitor (through HDMI) and it stopped getting stuck all of a sudden.    Next, I tried to go through the installation and when I clicked on restart now, my computer froze and I had to shut it down manually and start it back up again. At this point I got to the login screen and logged in but after entering my password it got stuck on a purple screen with my mouse pointer (which was frozen). I was able to get into a shell at this point (with ctrl+alt+f4) and attempted to run sudo apt-get install nvidia-390 but this froze when it reached building initial module for 4.15.0-22-generic and upon reboot I had to run sudo dpkg --remove -a.    I was unable to work around this so I attempted to install Ubuntu 16.04 which I could only do by adding acpi=off to the boot configuration (which by the way, I had a lot of trouble getting to since GRUB usually flashed in and then immediately disappeared and only occasionally would it stick around long enough for me to use). But when I try to boot up now, I never reach the screen with the five dots and instead immediately get stuck on a purple screen (with no mouse pointer).  I reinstalled Ubuntu 18.04 and am back to being stuck on the log-in screen.  What should I do? How much time until an unused hard drive loses its data? Do you guys know how much time needs to pass until the data stored on a hard drive starts to degrade?   To keep the data intact for long periods of time, I heard you need to periodically rewrite it on the hard drive, like every 5 years or so. Is it true? Expansion of $(1+px+qx^2)^8\equiv 1+8x+52x^2+kx^3$... $(1+px+qx^2)^8 \equiv  1+8x+52x^2+kx^3...$  Given that expression, calculate the values of p, q, and k.  I'm guessing this is a trinomial that needs to be turned into a binomial, but how would you do it? I have no idea. Shimano Deore front derailleur occasionally sticking I have a question about my front derailleur sticking occasionally.  I've had this bike for a 1.7 years and have ridden it through 2 winters.  It has only been after this last winter that my front derailleur has been sticking on occasion where it's like grit has jammed in somewhere (which I'm sure it is the case).  When I'm on the fly I just knock it with my heel and it will downshift and I can push the shifter hard enough to go back up when I need to.  The first time I decided to overhaul both the front and back ones.  Took them apart, cleaned/degreased, regreased the two back cogs, and used WD-40 professional silicone on the rest of the parts as to not attract more dirt.  Then after about a month it got stuck again, and I couldn't see anything that could be jamming it (while it was still stiff as heck).  Didn't take it apart this time just used a tooth brush and silicone again and it's fine at the moment.  I'm assuming it may be that since that the roads have been grittier/dirtier from the winter with some recent rain and slush that it may just be normal.  I haven't been on the trails yet this year so I know it's not that.  Is this normal, has some kind of bur that I can't see come up and is catching grit?  EDIT:  I should also note that this is a hardtail mtb that I use for trails and winter commuting (a lot of salt and grit on the roads). SBS 2011 - Is Store.exe High Memory Usage Normal? SQL Server 2000 on Windows 10 I need to install SQL Server MSDE 2000 SP4 on Windows 10.  I have other machines that run Windows 7 and 8.1 and SQL Server MSDE 2000 works fine (with merge replication configured too).  Now I testing the same scenario with Windows 10, but setup is closing unexpectedly during installation.  I know that this version is very old, but is there a workaround to install it on Windows 10? How to log out user from web site using BASIC authentication? Is it possible to log out user from a web site if he is using basic authentication?  Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials.  The only solution so far is to close browser, but that's not acceptable from the usability standpoint. In C#, what is the best way to access a property of the derived class when the generic list contains just the base class.  public class ClassA : BaseClass {    public object PropertyA { get; set; } }  public class ClassB: BaseClass {     public object PropertyB { get; set; } }  public class BaseClass { }  public void Main {     List&lt;BaseClass&gt; MyList = new List&lt;BaseClass&gt;();     ClassA a = new ClassA();     ClassB b = new ClassB();      MyList.Add(a);     MyList.Add(b);      for(int i = 0; i &lt; MyList.Count; i++)     {         //I would like to access PropertyA abd PropertyB from the derived classes             } } Calling a method in java and returning beer cost What are badges? How do users get badges? How can users get tag badges? Can badges be lost/revoked/taken away after they are awarded? If so, how and when? How can I suggest a new badge?   For more information, see &quot;&quot; and the  in the . Merle the Wizard is fighting enemies with his friends on a bridge. He wants to cast a spell on the BBEG, but they are currently out of range and so he uses his action to ready a spell for when the BBEG is in range.  However, before that happens one of Merle's friends is knocked off the bridge. Can Merle ignore the spell he had readied and use his reaction to cast feather fall? Free visual similarity image for a local hard drive search? I'm looking for a desktop search engine for finding images on my local hard drive with high visual similarity. I've only found paid for ones so far. It could be Linux or windows one, either would be helpful.  A Google desktop plug-in would be nice! HP PSC 1410 all scanner's images are black I have a HP PSC 1410 printer with scanner inside.  I've been scanning documents and images with it for the last couple of years.  Recently my scanner has stopped performing as excepted and i can't scan or copy images\documents.  My problem is that every images\document i'm trying to scan - the result from the printer is a black page.  I've been googling about this issue and couldn't find any helpful stuff beside replacing the whole printer - which is something i'm trying to avoid.  Any ideas ? I've read something about the shipping lock of the scanner but couldn't find any information about how to check it..