PlanetCNC / PlanetCNCNpp

Expression calculator plugin for Notepad++
5 stars 0 forks source link

[Feature Request] modulus function #5

Closed circcc closed 1 year ago

circcc commented 1 year ago

There is no very basic modulus function.

mod - Modulus Usage: mod(8,3) = 2.000000

PlanetCNC commented 1 year ago

There is modulo operator % (percent). See this: https://cnc.zone/expr/operators/oper-modulo

circcc commented 1 year ago

Have you tested it? I already checked that the % operator doesn't work and made a feature request. mod I get an error like this status bar with "8 % 3". win11/npp v8.5.4(64-bit)/PlanetCNC v2021.11.23.