0 Members and 3 Guests are viewing this topic.
Without using a float to make the exact result of the division in decimal points, you just get the nearest whole number as a result. If you take 2 ints you get an int(whole number). if you take 2 floats(decimal), or a float and an int, you get a float.in simpler terms, 5/2 in python is asking for a whole number. 5.0/2 or 5/2.0 or 5.0/2.0 is asking for a more exact, decimal result.
Just wanted to input that in most programming languages it's not the nearest whole number, it is always the lower one. This is because when an int gets assigned something like 1.99 or 1.5 or whatever and it just omits the decimal place and everything after it, so both of these would be 1 as an int.
Everyone knows that 4 can never be equal to 5, but in this proof you can see it.If you think that there is any mistake you can point out.Proof: 4=4 (all of us will agree, right?)now multiply both sides with -5, we get-20 = -20or 16-36 = 25-45by adding 81/4 both sides, we get16-36+81/4=25-45+81/4or (4-9/2)x(4-9/2) = (5-9/2)x(5-9/2)Taking square root both sides, we get(4-9/2)=(5-9/2)__> 4=5Hece, prooved
Oh I get it. It's like cucumber = potato because if you put mustard on both of them, then remove the skins, add salt, you get a hand bag. Makes total since now, why haven't I seen the logic before?
HEY,hey,hey. I am not solving this in python. I had just posted it not to ask u how python would react to it.Just think over it