Number type

From MiniScript Wiki
Revision as of 15:33, 17 March 2020 by 71.226.33.30 (talk) (Created page with "<c>funcname</c> Returns a map that represents the number datatype in miniScript's core type system. See also: string; list; map; funcRef === Usage Notes ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

funcname Returns a map that represents the number datatype in miniScript's core type system.

See also: string; list; map; funcRef

Usage Notes

number type can be used with isato check whether a variable refers to a number. You can also assign new methods here to make them available to all maps(though because of a limitation in MiniScript's parser, such methods do not work on numeric literals).

Example

42 isa number		// returns 1