0

Are numbers held by the String variable manipulatable in terms of addition, subtraction and the likes??

23rd Apr 2020, 12:26 PM
Sarah Juma
Sarah Juma - avatar
3 Réponses
+ 1
Example? If taking about this.. String s="1"; s=s+s=1+1=11 not 2.. But all languages have type casting or convertion options to convert into numbers then you can manipulate on those...
23rd Apr 2020, 12:35 PM
Jayakrishna 🇮🇳
+ 1
Sarah Osundwa you're welcome...
23rd Apr 2020, 1:31 PM
Jayakrishna 🇮🇳
23rd Apr 2020, 1:22 PM
Sarah Juma
Sarah Juma - avatar