PSeInt ConvertirANumero: text to number
Turns text that contains a number into a real number so you can do maths with it.
- Group:
- String Functions
- Template
ConvertirANumero
Open it in Codoritmo
Opens the editor with this example loaded. Run it step by step and watch the flowchart.
Worked example
A complete algorithm, ready to copy and run.
Algoritmo Example Escribir ConvertirANumero("42") + 1FinAlgoritmoOutput
Shows: 43
This is what the console shows when the example runs.
43In a flowchart
This is how it appears in a flowchart, with the same shapes Codoritmo draws.
Template
The general form. Replace what's inside < > with your own data.
ConvertirANumero(<cadena>)Examples that use it
Programs from the example library where it appears, from the simplest to the most complete.
Data Formatting
Fixes upper and lower case, and converts between text and numbers.
Intermediate
More string functions
Codoritmo is an independent, open-source project inspired by PSeInt and compatible with its syntax. It is not affiliated with the PSeInt project. Official PSeInt website.