help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Round function


From: Rory Conolly
Subject: Round function
Date: Fri, 16 Nov 2018 08:40:50 -0500

The round function in Octave rounds to the nearest integer while round in 
MATLAB supports rounding to arbitrary precision:

round(x,n) rounds x to n decimal places.

This is just a suggestion/request that it would be handy for the Octave 
function to work like the equivalent MATLAB function. This capability can be 
important when needing to compare numbers using == when  numerical noise can 
cause problems.

Sent from my iPhone


reply via email to

[Prev in Thread] Current Thread [Next in Thread]