Making switching rounding mode thread safe and changing it so the block returns the result when being passed a rounding mode
merging