Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 2.17 Converting a string of the type "-897.075" to the number -897.075

Страниц (1): [1]
 

1. Kibor - 24 Июля, 2018 - 05:07:25 - перейти к сообщению
formatsn is used to convert strings in which numbers are written to a natural number int or double.
Syntax:
formatsn ("76765");
formatsn ('7');
formatsn ("-757.067");

Accepts string or char. The sign of the fraction is the dot (.).
Returns an int or double that can be used in mathematical and other operations.
In case of an error, the number returns -10011001
The error is returned if the string in the parameter can not be converted to a number.

Powered by ExBB FM 1.0 Final