%s:STRING% as number — Expressions

%s:STRING% as number
%s:EXPR% as number
Math1.0.0

Description

Parses a string value into a double. Returns 0 if the value cannot be parsed.

Examples

set n to get args at index 0 as number
set n to "42.5" as number
Analyzing pattern:

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

<s> as number

Related (Math)