I can't agree with your solution. The questioner is calculating a phase. Doing math. Your solution is based on string manipulation. Conflating text values and numeric values leads to errors. Refrain from smearing your mental map of a problem space.
In reply to Re^2: Coping with decimals
by mikeraz
in thread Coping with decimals
by Ruanae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |