Number Filters

Absolute

returns number

Outputs the absolute value of a number.

Examples

Input

assuming something.value is -3
{{ something.value | abs }}

Output


3

At least

returns number

Limits a number to a minimum value.

Arguments

valueToCompare
number
(required)
The value to compare against

Examples

Input

assuming something.value is 4
{{ something.value | atLeast: 5 }}

Output


5

Input

assuming something.value is 4
{{ something.value | atLeast: 3 }}

Output


4

At most

returns number

Limits a number to a maximum value.

Arguments

valueToCompare
number
(required)
The value to compare against

Examples

Input

assuming something.value is 6
{{ something.value | atMost: 5 }}

Output


5

Input

assuming something.value is 4
{{ something.value | atMost: 5 }}

Output


4

Ceiling

returns number

Rounds a number up to the nearest integer.

Examples

Input

assuming something.value is 1.2
{{ something.value | ceil }}

Output


2

Divided by

returns number

Divides a number by a given number.

Arguments

valueToDivideBy
number
(required)
The value to divide by

Examples

Input

assuming something.value is 24
{{ something.value | dividedBy: 5 }}

Output


4.8

Floor

returns number

Rounds a number down to the nearest integer.

Examples

Input

assuming something.value is 1.2
{{ something.value | floor }}

Output


1

Minus

returns number

Subtracts a given number from another number.

Arguments

valueToSubstract
number
(required)
The value to substract

Examples

Input

assuming something.value is 4
{{ something.value | minus: 2 }}

Output


2

Modulo

returns number

Returns the remainder of dividing a number by a given number.

Arguments

valueToDivideBy
number
(required)
The value to divide by

Examples

Input

assuming something.value is 12
{{ something.value | modulo: 5 }}

Output


2

Pluralize

returns string

Outputs the singular or plural version of a string based on a given number.

Arguments

plural
string
(required)
The word to return if the number 0 or more than 1
singular
string
(required)
The word to return if the number is 1

Examples

Input

assuming something.value is 1
{{ something.value | pluralize: 'item', 'items' }}

Output


item

Input

assuming something.value is 5
{{ something.value | pluralize: 'item', 'items' }}

Output


items

Plus

returns number

Adds two numbers.

Arguments

valueToAdd
number
(required)
The value to substract

Examples

Input

assuming something.value is 2
{{ something.value | plus: 2 }}

Output


4

Round

returns number

Rounds a number to the nearest integer or, if a number is passed as an argument, to that number of decimal places.

Arguments

amountOfDecimals
number
(optional)
The amount of decimals to show, defaults to 0

Examples

Input

assuming something.value is 2.7
{{ something.value | round }}

Output


3

Input

assuming something.value is 3.14159
{{ something.value | round: 2 }}

Output


3.14

Times

returns number

Multiplies a number by a given number.

Arguments

valueToMultiplyWith
number
(required)
The value to multiply with

Examples

Input

assuming something.value is 2
{{ something.value | times: 2 }}

Output


4

Numbers properties also support all the following String filters

Append

returns string

Adds a given string to the end of a string.

Arguments

stringToAppend
string
(required)
The string to add at the end

Examples

Input

assuming product.title is "Health potion"
{{ product.title | append: ' with extra magic.' }}

Output


Health potion with extra magic.

Camelize

returns string

Converts a string to CamelCase.

Examples

Input

assuming product.title is "Health potion"
{{ product.title | camelize }}

Output


HealthPotion

Capitalize

returns string

Capitalizes the first word in a string.

Examples

Input

assuming product.title is "health potion"
{{ product.title | capitalize }}

Output


Health potion

Downcase

returns string

Converts a string to all lowercase characters

Examples

Input

assuming product.title is "Health Potion"
{{ product.title | downcase }}

Output


health potion

Escape

returns string

Escapes special characters in HTML, such as <>, ', and &, and converts characters into escape sequences.

Examples

Input

assuming product.description is "Health " Potion"
{{ product.title | escape }}

Output


Health " Potion

Left strip

returns string

Strips all whitespace from the left of a string.

Examples

Input

assuming product.description is "   Some potions create whitespace.   "
{{ product.description | lstrip }}

Output


"Some potions create whitespace.   "

Prepend

returns string

Adds a given string to the beginning of a string.

Arguments

stringToPrepend
string
(required)
The string to add at the beginning

Examples

Input

assuming product.title is "Health Potion"
{{ product.title | prepend: 'Super ' }}

Output


Super Health Potion

Remove

returns string

Removes any instance of a substring inside a string. Use single quotes around a longer string of text. i.e. | remove : 'long string'.

Arguments

stringToRemove
string
(required)
The string to find and remove

Examples

Input

assuming product.title is "Health potion"
{{ product.title | remove: 'o' }}

Output


Super Health Ptin

Remove First

returns string

Removes the first instance of a substring inside a string.

Arguments

stringToRemove
string
(required)
The string to find and remove

Examples

Input

assuming product.title is "Health potion"
{{ product.title | removeFirst: 'o' }}

Output


Super Health Ption

Remove Last

returns string

Removes the last instance of a substring inside a string.

Arguments

stringToRemove
string
(required)
The string to find and remove

Examples

Input

assuming product.title is "Health potion"
{{ product.title | removeLast: 'o' }}

Output


Super Health Potin

Replace

returns string

Replaces any instance of a substring inside a string with a given string.

Arguments

stringToReplaceWith
string
(required)
The string to replace the search results with
stringToSearch
string
(required)
The string to search for

Examples

Input

assuming product.handle is "new-health-potion"
{{ product.handle | replace: '-', '_' }}

Output


new_health_potion

Replace First

returns string

Replaces the first instance of a substring inside a string with a given string.

Arguments

stringToReplaceWith
string
(required)
The string to replace the first search result with
stringToSearch
string
(required)
The string to search for

Examples

Input

assuming product.handle is "new-health-potion"
{{ product.handle | replaceFirst: '-', '_' }}

Output


new_health-potion

Replace Last

returns string

Replaces the last instance of a substring inside a string with a given string.

Arguments

stringToReplaceWith
string
(required)
The string to replace the last search result with
stringToSearch
string
(required)
The string to search for

Examples

Input

assuming product.handle is "new-health-potion"
{{ product.handle | replaceLast: '-', '_' }}

Output


new-health_potion

Right strip

returns string

Strips all whitespace from the right of a string.

Examples

Input

assuming product.description is "   Some potions create whitespace.   "
{{ product.description | rstrip }}

Output


"   Some potions create whitespace."

Slice

returns string

Returns a substring, starting at a given 0-based index.

Arguments

indexFrom
number
(required)
The 0-based index to start the substring from
indexTo
number
(required)
The 0-based index to end the substring at

Examples

Input

assuming product.handle is "new-health-potion"
{{ product.handle | slice: 0,3 }}

Output


new

Strip

returns string

Strips all whitespace from the left and right of a string.

Examples

Input

assuming product.description is "   Some potions create whitespace.   "
{{ product.description | strip }}

Output


"Some potions create whitespace."

Truncate

returns string

Truncates a string down to a given number of characters.

Arguments

length
number
(required)
The total number of characters to truncate the string to (including ...)

Examples

Input

assuming product.title is "Health Potion"
{{ product.title | truncate: 9 }}

Output


Health...

Downcase

returns string

Converts a string to all uppercase characters

Examples

Input

assuming product.title is "Health Potion"
{{ product.title | upcase }}

Output


HEALTH POTION