Price fraction: Difference between revisions

→‎{{header|AppleScript}}: Spotted type while saving.
(Added AppleScript.)
(→‎{{header|AppleScript}}: Spotted type while saving.)
Line 231:
The task description doesn't make a lot of sense, implying that the pharmacist charges no more than 1.00 for his wares and that even whole-number prices are nudged by 0.10 and odd ones aren't. This offering takes any decimal currency value and standardises just the fractional part:
 
<lang applescript>-- This handler just returns the standardised real value. ItsIt's up to external processes to format it for display.
 
on standardisePrice(input)
557

edits