-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
at least go1.4, go 1.6, go tip
found this writing fmt tests for float formatting.
But i do not think this time its a formatting error:
https://play.golang.org/p/UonwOD_TT3
package main
func main() {
v := -1+0i
print(real(v)/0.0) // float 0 division
print(" vs ")
print(real(v/0.0)) // complex 0 division
print("\n")
}
Output:
-Inf vs +Inf
would have expected -Inf for the complex case too.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.