RosettaCodeData/Task/Extreme-floating-point-values/R/extreme-floating-point-values.r

4 lines
113 B
R
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
# 0 and -0 are recognized but are both printed as simply 0.
1/c(0, -0, Inf, -Inf, NaN)
# Inf -Inf 0 0 NaN