AngouriMath

Navigation

← Back to list of members

Floor​(AngouriMath.​Entity)

 Method (no overloads)

Summary

The greatest integer not above a.

Parameter "a"

The argument to take the floor of.

Returns

The floor of the argument.

Remarks

Toward negative infinity, not toward zero: floor(-3/2) is -2. On a
complex argument it is taken componentwise, which is what SymPy and Mathematica
both do.

Example

using System;
using static AngouriMath.MathS;
            
Console.WriteLine(Floor("3/2").Simplify());
Console.WriteLine(Floor("-3/2").Simplify());
Console.WriteLine(Floor("x"));

Prints
1
-2
floor(x)

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online