str function

Syntax

  • string str(value)

Parameters

  1. value—(float, bool, string, float[], bool[], string[])
    Value to convert.

Returns

String calculated from value.

Description

The str function converts value to the corresponding string value.

Related

Examples

example.1
	str(1.69)
	# result = "1.69"
example.2
	str(1.69 - 69/100)
	# result = "1"
example.3
	str(001)
	# result = "1"
example.4
	str(true)
	# result = "true"

In this topic