← All docs

bcfloor()

Rounds an arbitrary-precision decimal number down to an integer.

bcfloor()

function bcfloor(string $num): string

Rounds an arbitrary-precision decimal number down to an integer.

Parameters:

  • $num (string)

Returns: string

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how bcfloor is implemented in the compiler, see the internals page.