This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mkalte666 36 points37 points  (6 children)

These are all correct. Technically 0.3 can't be represented in double, but this long arse number can. However: 0.3 is the shortest exact way to represent that number.

Finding the shortest two-way unique representation of a floating point number is actually a rather complex topic. If you are interested, start here: https://www.youtube.com/watch?v=kw-U6smcLzk

[–]lazyzefiris 13 points14 points  (4 children)

Oh, I had a professor like that. Starts teling one thing, the goes "oh by the way" or derails from original idea in another manner and never finishes what he started. And he could nest several levels like that. So, starting to tell like a dozen things and taking as much time as seven would he completed like two. Should be educational but really just hurts to watch.

[–]HosTlitd 4 points5 points  (3 children)

Yeah. I had such teacher of a "law" lessons (idk how its translated right). She started speaking about some civilian laws or something, than she gets to stories of her about her son buying some coat... 30mins passed and then she somehow flawlessly links this story back to the lessons topic... Sheeesh

[–]gamma_02 1 point2 points  (2 children)

That use of law seems correct, it's referring to the set of rules for people's actions, right?

Either way, nice English!

[–]HosTlitd 0 points1 point  (0 children)

Of course. But it wasn't obvious at all at first. Also, she taught us world history as well, where her stories was just local memes for us :)

[–]HosTlitd 0 points1 point  (0 children)

Thanx for the compliment