Originally Posted by lee_stitches
Originally Posted by ghostrider
The diagonal of a square is 1.414 times the length of one side. Best to round up and trim down.
Your way is much easier.
It's the same as yours, just more universal. If the sides are 1, the diagonal equals the square root of 2 which is 1.414. ;)