Properties
Category
English
Similar Topics
Statistics
Comments
3
Participants
2
Subscribers
2
Votes
1
Views
547
Share
Answered
I use an inputbox to get a number in string. e.g. value = "0000234560"
I want to remove the first 4 zeros, so that value = "234560"
But my following code doesn't work. I need some help.
SetValue(loopnum, Length(value))
Repeat(loopnum, If(IndexOf("0", value)==1, SetValue(value, Take(value, 2)) ) )
I am wondering is the dependencies problem or what? Thanks you for your help.
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
My case is when the user input any numbers with 0's in front, my code will always erase the 0's in front.
Hope someone can help. Thanks
You can use the script command ParseToNumber()
Thanks for your idea~Thats what I want~!
Comments have been locked on this page!