I need to split the number 1.0765453 because I need to separate the km from the meters
The result should be 76 (ignoring the zero)
Can anyone offer a suggesti, please
Thanks, Richard
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To use string methods first convert to a string:
or
But you should do it like this and work only with numbers, not strings:
or, if you want it rounded rather than truncated: