Hi, GDAL also supports https://github.com/ArashPartow/exprtk (which is available in the -full Docker image), which has a % operator, but I've never used it.
Laurentiu On Tue, Oct 7, 2025, at 19:30, Scott via gdal-dev wrote: > Greetings! > > I've been unable to find a modulo operator in CLI calc. It's not in the > muparser functions or appear to be in the forth-coming 3.12 C pixel > functions. > > This has been working with muparser, but it's messy every time you need > a simple modulo. pixel is real or int, div is int: > > rint(pixel) - (rint(rint(pixel) / div) * div) > > Am I missing something? If not, consider this a feature request! :) > > Thanks! > Scott > > -- > www.postholer.com > > _______________________________________________ > gdal-dev mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
