Can't get tcl int() function to work

I am developing using QNX Neutrino 6.3 and I’d like to use tcl scripts as a test driver.

I’ve successfully installed tcl 8.4.14. Everything appears to work fine except for the int() function, which is part of the expr command. I’m wondering if anybody else has run into this on QNX or if there is some kind of bug list for this in tcl.

Here’s what I get at the tcl shell:

% expr {floor(8.5)}
% expr {int(8.5)}
syntax error in expression “int(8.5)”: extra tokens at end of expression

Other math functions work fine and this exact syntax works fine in tcl shells on other computers. Any help is appreciated.


[ expr int($number) ]