Prev: truncating negative numbers
Next: Some clarifications needed in simulink asynchronous machine model
From: Dolchut on 8 Jul 2010 08:37 Hi, say I have the following three negative numbers: -151.5 -48.78 -32.23 and I just want to truncate it so that the negative integer part remains (removing the decimal). I do not want to round or floor it. And as the number size varies (151, 48, 32), I cannot use precision either... the result should look like: -151 -48 -32 It may sound trivial but could use some hint... cheers
|
Pages: 1 Prev: truncating negative numbers Next: Some clarifications needed in simulink asynchronous machine model |