Subtract

Subtracts a list of numbers. If an item in the string is not a number it is excluded from the list.

Input: TextResult: High-precision number

Text input

Tool options

Examples

A split invoice total

Input

100
25
5

Expected answer

70
Delimiter
Line feed
A storage allocation

Input

1024
2
4

Expected answer

1018
Delimiter
Line feed
A negative adjustment

Input

0
3
2

Expected answer

-5
Delimiter
Line feed
An equal-share calculation

Input

36
3
2

Expected answer

31
Delimiter
Line feed
A zero balance

Input

0
1
1

Expected answer

-2
Delimiter
Line feed
Subtract

Input

321,123,test

Expected answer

JSON
198
Delimiter
Comma
no valid input

Input

test

Expected answer

NaN
Delimiter
Comma

e.g. 0x0a 8 .5 becomes 1.5

Format reference: Subtract background and specification

Parameters

ParameterDefault valueInput and choices
DelimiterLine feedLine feed, Space, Comma, Semi-colon, Colon, CRLF

Related tools

Browse arithmetic / logic tools