S
Steve Chapel
I want to use the IEEE floating point value +Infinity in Perl. How can I
assign that value to a scalar variable? I tried looking for a way to
write a literal value representing infinity, but couldn't find one. I
tried computing +Infinity by dividing 1.0 by 0.0, but at runtime I get
an "Illegal division by zero" error. Infinity is a valid value in IEEE
floating point, so certainly there's some way to assign it to a
variable, isn't there?
assign that value to a scalar variable? I tried looking for a way to
write a literal value representing infinity, but couldn't find one. I
tried computing +Infinity by dividing 1.0 by 0.0, but at runtime I get
an "Illegal division by zero" error. Infinity is a valid value in IEEE
floating point, so certainly there's some way to assign it to a
variable, isn't there?