I am having a floating variable which may or may not be float, but the output must be in interger only.
Suppose the variable "a" has float value, then it should be convert to nearest interger value. For example : 23.4 should be convert to 23 and 27.86 should be convert to 28.
So i tried th below code and and the error.
I'm using ksh. Could you please help me on this?
CODE
a=3333.5678
b=int($a)
echo "a is $a"
echo "b is $b"