Convert floating to integer in ksh

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"

ERROR

Syntax error at line 2 : `(' is not expected.

Maybe try something basic like this in ksh?

a=3333.5678
b=$((rint(a)))
echo "a is $a"
echo "b is $b"
$ ksh test_rint.ksh 
a is 3333.5678
b is 3334

... that works in ksh93 and newer.

ksh88 needs

b=$(printf "%.f" $a)

Hi MadeInGermany...
The problem is it rounds both down and up; and int() function rounds down only...

Last login: Wed Apr 22 17:51:50 on ttys000
AMIGA:amiga~> 
AMIGA:amiga~> dash
AMIGA:\u\w> 
AMIGA:\u\w> printf "%.f\n" 123.456  
123
AMIGA:\u\w> printf "%.f\n" 123.654
124
AMIGA:\u\w> 
AMIGA:\u\w> exit
AMIGA:amiga~> python3.8
Python 3.8.0rc1 (v3.8.0rc1:34214de6ab, Oct  1 2019, 12:56:49) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> int(123.456)
123
>>> int(123.654)
123
>>> exit()
AMIGA:amiga~> _

EDIT:
Apologies; ignore, I misread the OP's requirements...