In the previous post, if you use the substr function to tease out a number e.g. roll, the number is in character format. Mathematical functions can not be performed on character variables.
To convert a variable from character to number format, there are following ways:
rollno=roll*1;
rollno=input(roll,4.0)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment