Given the choice between limiting the input and changing to 128-bit precision, I would suggest limiting the input. If you change to 128-bit precision you're not fixing the problem, just moving it - I could still put in an angle to a bajillion decimal places and cause an overflow. Besides, who needs to specify an angle to that level of precision anyway? Unless I got my math wrong, a change in the 10th decimal place of an angle will result in a displacement of less than 0.01LDU on an arm of half a kilometer.
Sorry if this reply is too late and you've already written the code - not sure why it didn't occur to me on any of my previous readings of this thread!
Sorry if this reply is too late and you've already written the code - not sure why it didn't occur to me on any of my previous readings of this thread!