[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rounding intergers
From: |
inor0627 |
Subject: |
Re: Rounding intergers |
Date: |
Tue, 27 Jan 2015 07:01:11 -0800 (PST) |
Fern wrote
> p=187
>
> round((p/10)*10)
>
> ans=187
Hello Fern,
it works when setting the parentheseses correctly:
p=187
round(p/10)*10
ans = 190
Ingo
--
View this message in context:
http://octave.1599824.n4.nabble.com/Rounding-intergers-tp4668274p4668287.html
Sent from the Octave - General mailing list archive at Nabble.com.