cast to number

This block is part of the type casting group and was last modified in core v10.4.28.

cast to number v10.4.28

Converts the given value into a number.

In pins 1
  • Value required
    value

    The value to be converted into a number.

Out pins 1
  • Number
    number

    The converted output number.

A typical wiring for cast to number: get cache key feeds the value pin; the number out pin feeds if.

Studio canvas example for the cast to number block: typical wiring for cast to number.

Commonly used with

In production blueprints, this block is most often wired together with:

  • new object: this block feeds into it. Builds a new object filled with the given fields.
  • get at index: feeds into this block. Returns the element stored at the given zero-based index. An index outside the array, or an element that is null, outputs null.
  • get cache key: feeds into this block. gets the key and returns true or false based of its existence, makes it easier for cache-management in flows.
  • if: this block feeds into it.

Version history

Introduced in v10.4.28.


Back to type casting Return to the main group to view all sub-groups Back to value Return to the group to view all blocks within this group