Post

Fixed Point/ Floating Point

βœ… Fixed Point

-3.141592 = (-) + (3) + (0.141592) need three parts

representation of real data type for a number that has fixed number of digits after radix point

πŸ‘πŸ» no complicated logic
πŸ‘πŸ» fixed accuracy
πŸ‘ŽπŸ» represent limited range of values
πŸ‘ŽπŸ» only can represent small number set
πŸ‘ŽπŸ» less flexible

βœ… Floating Point

formulaic representation of real numbers as an apporoximation as to support trade off between range and precision

πŸ‘πŸ» possible to represent large number set
πŸ‘ŽπŸ» slower, lower performance
πŸ‘ŽπŸ» accuracy varies
πŸ‘ŽπŸ» complex logic

This post is licensed under CC BY 4.0 by the author.