Discord
Login
Community
DARK THEME

string to number

(this is a stupid question XD)

I can't find a string to number function, am I blind?

vielleicht hilft das:

str1 = '2'

str2 = '3'

print(str1 + str2) // 23

print(str1 * str2) // 6

num1 = str1 * 1 // cheat for convert ..?

num2 = str2 * 1

print(num1+num2) // 5

print(num1*num2) // 6

Also check section Numbers / conversion here: https://microstudio.dev/documentation/microScript-cheatsheet/

The Cheat Sheet it seems, has important information that I was not aware of from just reading the other docs. It's where you talk more about the syntax of the language.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community