Talk:Arithmetic/Rational: Difference between revisions

Computer numbers are rational
(Computer numbers are rational)
Line 21:
 
:how about them just noting that fact and maybe giving an example of their use? --[[User:Paddy3118|Paddy3118]] 07:04, 14 February 2009 (UTC)
 
::Huh, technically, numbers in all computer languages I know are rational. Integer, fixed- and floating-point numbers of any natural radix are rational. Well, ideals NaN and +/-Inf of IEEE 754 aren't rational, though this does not count, because the rest is rational. I remotely remember some implementations of numbers based on Pi or e radix. Those are not rational. Complex numbers are not rational, of course. IMO the task name is quite misleading. It is looks more like a certain representation of rational numbers to be used in order to implement a certain subset of [http://en.wikipedia.org/wiki/Rational_number Q]. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 14:10, 14 February 2009 (UTC)
 
IMHO It certainly should be noted if a language already has Rational