RosettaCodeData/Task/Extreme-floating-point-values/R/extreme-floating-point-values.r
2023-07-01 13:44:08 -04:00

3 lines
113 B
R

# 0 and -0 are recognized but are both printed as simply 0.
1/c(0, -0, Inf, -Inf, NaN)
# Inf -Inf 0 0 NaN