-
Notifications
You must be signed in to change notification settings - Fork 397
Description
I might be poking to a bees nest by bringing a closed issues up again ( #502 ) but I'll take my chances.
I would like to discuss the reason way throwing an exception "just" because of Infinity.
Most of the time, If a result is Infinity it is because of a programming error (who wants an infinity results?)
It therefore make sense to tell that programmer that he has made a mistake.
But why is there no exception thrown when a double is Infinity?
Because many system, doing a iteration process, can have an infinity result doing one of the iterations and that's no problem.
By throwing an Infinity exception it forces me to have a try/catch around all my lines where I do math with UnitsNet. Infinity is a real part of my everyday life and I dont think it should throw an exception.
What do you think of doing it the same way as the double-system?
The people that has made the double-system must have had a reason not to throw an exception.
Looking forward to hear what you think!