Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				@j4cobgarby nope, it actually is `5000` for some reason xD
 atleast, in the code we are using
- 
				
				Wait, there's actually something really funky going on here...
 One time it gives 50.14XXXX and the other time 51.47XXX
 
 This is odd XD
- 
				
				Ok, figured out why it kept showing different values.
 
 Due to her code, she doesn't just modify `t` inside the function itself, but she has `t` as a "global" xD (she modifies it somewhere else in memory, not just in the function memory)
Related Rants






 No questions asked
No questions asked
 Told my gf I wanted a coding buddy so she won me this during the hackathon 😀
Told my gf I wanted a coding buddy so she won me this during the hackathon 😀 As a Python user and the fucking unicode mess, this is sooooo mean!
As a Python user and the fucking unicode mess, this is sooooo mean!
Girlfriend had issue with her Python code (she does mathmatics, not actual programming):
```
t = 51.74636335135748
i = int(t*100) // 5174, wrong value
```
instead of
```
t = 51.74636335135748
i = int(t)*100 // 5000, right value...
```
She asked me if I could fix it for her.
I found the issue but wanted her to understand what went wrong.
She didn't care "because she didn't have time for it".
Well, then it's quite simple for me: I have no time to help her :^)
rant
girlfriend
python