Help us shape the future of Go! Take the 2026 Go Developer Survey

mathutil

package
v3.6.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mathutil provides integer arithmetic helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MulDiv

func MulDiv(x, mul, div int64) (int64, bool)

MulDiv returns x * mul / div truncated toward zero. It returns (0, false) if div is zero or the result does not fit in int64.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL