Ask Your Question
0

no cInt() from positive numbers? cInt("+308") = 0 ???

asked 2020-09-16 10:44:31 +0100

newbie-02 gravatar image

hi,
small problem,
in a macro i wanted to use a formula with 'cInt' (converts to Integer),
'cInt("+308")' -> '0' ????
while
'cInt("308")' -> '308'
and
'cInt("-308")' -> '-308'

perplexed,

b.

edit retag flag offensive close merge delete

Comments

'old bug' again, see @Lupp's answer to - another ask question -, and @Mike Kaganski already reacted see - bug filed for the issue -

newbie-02 gravatar imagenewbie-02 ( 2020-09-17 07:18:28 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-09-16 11:13:27 +0100

Zizi64 gravatar image

Try to use the

 = Int(Val(TheString))

combination of the existing functions.

If you feel if it is a bug, then please report it on the Bugreport pages.

Bug reports

edit flag offensive delete link more

Comments

thanks ... yes, i feel it's a bug, but before flooding 'bugs' with wrong ideas i try to ask here (to rule out if i'm wrong, what may happen sometimes),

newbie-02 gravatar imagenewbie-02 ( 2020-09-16 17:19:59 +0100 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2020-09-16 10:44:31 +0100

Seen: 25 times

Last updated: Sep 16 '20