Skip to content
Matlab-ToolboxPublic

About

Rounds a number with 2^n precision.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roundn2

roundn2, rounds a number with 2^n precision.

It is a power of 2 version of roundn.

For versions of matlab without roundn please see the Matlab-Toolbox.

Example

roundn2(5, 1) %rounded to precision of 2^1 (2)
> 6

roundn2(1.45, -1) %Rounded to precision of 2^-1 (0.5)
> 1.5

Installation

To get library clone from github:

cd to your lib folder
git clone https://github.com/Matlab-Toolbox/roundn2.git

Add package to path:

%% Add package to path
run(['/path_to_package/roundn2/load_toolbox.m']);

About

Rounds a number with 2^n precision.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages