G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.6.2        Current pre-release: 3.6.3 (2025/10/08)

Reference
Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  round◀  replace_str    |    roundify  ▶

round

Built-in command

Arguments:

  • rounding_value>=0,_rounding_type    or
  • (no arg)

Description:

Round values of selected images.

rounding_type can be { -1:Backward | 0:Nearest | 1:Forward }.

Default values:

rounding_type=0.

Examples of use:

• Example #1

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +round 100

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +round 100
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +round 100

• Example #2

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul {pi/180} sin +round

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul {pi/180} sin +round
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul {pi/180} sin +round
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.