In PYTHON(3.4.3): How come in the code below x is 3.5... and y is 100. Shouldn't x be 0.  weight = 356 weight2 = 3.56 x = weight%weight2 y = weight/weight2 print(x) print(y)   But in this code x does = 0 as expected:  weight = 35600 weight2 = 356 x = weight%weight2 y = weight/weight2 print(x) print(y)   If you have any explanation please answer and give a workaround if you have one!! :)
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
How can one show there is no holomorphic function $f$ on the open unit disc $\mathbb{D}$ such that it extends continuously to $\frac{1}{z}$ on $\partial\mathbb{D}$? I mean $f$ takes value $\frac{1}{z}$ when $|z|=1$ and continuous here.  Thank you. How to show $u \in R^{x} \implies u \in R[X]^{x}$ for integral domain $(R,+, \times)$ How do I convert or upgrade roads? I'm trying to optimize my road system a bit, mostly converting regular small roads into one-way roads. But the only way I can see to do that is to remove the old road entirely and build a new one. I can't seem to just build over the old one.   I can understand that limitation in cases where the new road type is larger, but it should be possible to upgrade to roads with the same size without tearing down the old road manually.   Is there an easier way to convert or upgrade roads, or do I have to manually remove the existing road every time? Resolving a Git conflict with binary files I've been using Git on Windows (msysgit) to track changes for some design work I've been doing.  Today I've been working on a different PC (with remote repo brian) and I'm now trying to merge the edits done today back into my regular local version on my laptop.  On my laptop, I've used git pull brian master to pull the changes into my local version. Everything was fine apart from the main InDesign document - this shows as a conflict.  The version on the PC (brian) is the latest one that I want to keep but I don't know what commands tells the repo to use this one.   I tried directly copying the file across onto my laptop but this seems to break the whole merge process.  Can anyone point me in the right direction? I am a graduate student in mathematics who would like to learn some classical mechanics. However, there is one caveat: I am not interested in the standard coordinate approach. I can't help but think of the fields that arise in physics as sections of vector bundles (or maybe principal bundles) and would love an approach to classical mechanics or what have you that took advantage of this.  Now for the questions:   Is there a text book you would recommend that phrases the constructions in classical mechanics via bundles without an appeal to transition functions?   What are the drawbacks to this approach other than the fact that it makes computations less doable? (if it does that)   Are there benefits to thinking about things this way, ie would it be of benefit to someone attempting to learn this material to do it this way? Removing duplicate rows from table in Oracle I'm testing something in Oracle and populated a table with some sample data, but in the process I accidentally loaded duplicate records, so now I can't create a primary key using some of the columns.  How can I delete all duplicate rows and leave only one of them? Android – Listen For Incoming SMS Messages Restrict the scope of a command to the execution of another command Omitting fields in Bibliography How can I fix apt error "W: Target Packages ... is configured multiple times"? When is a function too long? Last login: Mon Jun  7 22:43:40 on ttys000 samadams@Sams-MacBook-Pro-2 ~ % diskutil cs list No CoreStorage logical volume groups found samadams@Sams-MacBook-Pro-2 ~ % diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *121.3 GB   disk0    1:                        EFI ⁨NO NAME⁩                 536.9 MB   disk0s1                     (free space)                         60.5 GB    -    2:                 Apple_APFS ⁨Container disk1⁩         60.1 GB    disk0s2  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +60.1 GB    disk1                                  Physical Store disk0s2    1:                APFS Volume ⁨MacOS Big Sur - Data⁩    30.0 GB    disk1s1    2:                APFS Volume ⁨Preboot⁩                 233.2 MB   disk1s2    3:                APFS Volume ⁨Recovery⁩                652.6 MB   disk1s3    4:                APFS Volume ⁨VM⁩                      1.1 GB     disk1s4    5:                APFS Volume ⁨MacOS Big Sur⁩           24.4 GB    disk1s5    6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 24.4 GB    disk1s5s1    7:                APFS Volume ⁨Untitled⁩                860.2 KB   disk1s7 I'm writing a php program that pulls from a database source. Some of the varchars have quotes that are displaying as black diamonds with a question mark in them (�, , I assume from Microsoft Word text).  How can I use php to strip these characters out? I'd like to create a LaTeX document that when rendered into PDF, has forms that can be filled out using Adobe Reader or other such programs. Then I'd like to be able to extract the data. I deliberately would like to avoid using Acrobat for all the usual reasons (non-free, need different versions for different platforms etc).   Can this be done ? $(K[x,y,z]/(x^2+y^3+z^7))_{(x,y,z)}$ is a UFD. When asking a new question and typing in the title we get a list of similar questions named     Questions that may already have your answer     That suggestions contains posts across all tags. Like the example in the screenshot it returns similar questions for Python, jQuery, SQL, C#, Java, C++, ...  This makes the list less useless unlikely people find a question that already answers theirs. If people actually find a similar question in that list many duplicates could be avoided.  So can tags I entered below the question be considered to update the list? And can the tag textbox maybe put above the question title? Norm and unit sphere In Season 6, we find out the following about the magical properties of the wall:     BENJEN: This is where I leave you.   BRAN: You're not coming with us?   BENJEN: The Wall is not just ice and stone. Ancient spells were carved into its foundations. Strong magic to protect men from what lies beyond. And while it stands, the dead cannot pass. I cannot pass.   —"Winds of Winter" (Game of Thrones, S06E10)   So why would the men of Westeros need to worry about the Night King and his army? Couldn't they sit back and enjoy the wall's protection? The use of imaginary and complex values comes up in many physics and engineering derivations. I have a question about that: Is the use of complex numbers simply to make the process of derivation easier, or is it an essential ingredient, without which it would be impossible to derive some results?   I can identify two different settings where the answer may be different:   It doesn't look like it is mandatory for results in Newtonian mechanics, General Relativity and classical electrodynamics. Can we say the same thing about quantum mechanics either way for sure?   Could this be a difference in quantum mechanics over the classical picture? What counts as a 'large' raid 5 array?