Site icon TestingDocs.com

Flowgorithm Data Type Conversion Functions

Overview

Flowgorithm provides several data type conversion functions that allow programmers to change the data types of the variables. In this tutorial, we will learn some data type conversion functions with examples.

Data Type Conversion Functions

Flowgorithm variables can only be assigned data to be compatible with the declared data type.  Violations to this would result in the Type Mismatch Error. Below are some data type conversion functions:

 

Flowgorithm Function Description
ToString(n) This function converts the number to a string
ToInteger(str) This function converts the string to an integer
ToReal(str) This function converts the number to a real number
ToFixed(r, d ) Converts a real number( r ) to a string with (d ) digits after the decimal point.
ToCode(c) Converts a character (c) into a decimal ASCII character code
ToChar(n) Converts a decimal ASCII character code( n) into a character

Example

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

Flowgorithm Website

For more information on the Flowgorithm tool, please visit the official website at:

http://flowgorithm.org/

Exit mobile version