As i am new to smarty, I am not at able to convert floating number to int. Ex: 12.234 => 12 please help me if u find any solution
Why don't you cast it before attaching it to the view. There is no reason to pass the view data that needs to be further processed.
$int = (int) $float;
$smarty->assign(array(
'number' = $int
));
If you really must get the integer portion of a float using Smarty, try this...
{$number|string_format:"%d"}
That is like PHP's printf()
.