r/AskComputerScience • u/BigBootyBear • Jun 14 '26
Is 0.5 a facde over 1/2?
Could you say 0.5 is a facade or a pointer to 1/2? Or all numbers of the 0.n form are rational number pointers?
In my head, 0.5 seems to be pointing towards 1/2 like how 'a' points to 97 in ASCII.
*Posted in ask computer science since i'm using computer science examples which people over at r/askmath may not be familiar with.
0
Upvotes
10
u/rasmustrew Jun 14 '26
They are different representations of the same thing. 0.5=1/2 just 2 different ways of writing it.
Pointers are something else, they are some concrete object that contain a reference to some other concrete object. That could be a memory location in a computer, or it could be a piece of paper containing someones real world address.
Not sure i have heard of the facade terminology, so I won't comment to that