ZX BASIC:CAST

From BorielWiki
Jump to: navigation, search

Contents

CAST

Syntax

 
CAST (type,numeric value)
CAST (type,variable)
CAST (type,FUNCTION(data))

Description

Returns a value of the type specified with a value equivalent to the item specified, if that is possible.

Remarks

  • This function can lose precision if used indiscriminately. For example, CAST(Integer,PI) returns 3, losing precision on the value of PI.
  • This function is NOT Sinclair Compatible.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Translate
Google AdSense