Enterprise
Sign In
← Docs
  • Zoo Design Studio
  • Zoo Developer Tools
  • Glossary
  • FAQ
kcl-std → functions → rem

remFunction in std::math

Compute the remainder after dividing num by div. If num is negative, the result will be too.

Arguments

NameTypeDescriptionRequired
numnumberThe number which will be divided by divisor.Yes
divisornumberThe number which will divide num.Yes

Returns

number - A number.

Examples

Found a typo?
Zoo

8701 Aviation Blvd

Inglewood, California 90301

    Product
  • Zoo Design Studio
  • Text-to-CAD
  • Download App
  • Release Notes
    Company
  • Enterprise
  • Careers
  • Research
  • Blog
  • Contact sales
    Pricing
  • Zoo Design Pricing
  • API Pricing
    Resources
  • Tutorials
  • Developers
  • Support
  • Terms & Conditions
  • Privacy Policy
  • Security
  • Trust Center

Copyright © 2026 ZOO CORPORATION All rights reserved.