Berserk Docs
Scalar FunctionsMath Functions

bin_at

Round values down to a bin of a given size relative to a fixpoint.

Syntax

bin_at(value, step, fixpoint)

Parameters

Prop

Type

Returns: dynamic

Examples

Example 1

print bin_at(datetime(2024-06-08), 7d, datetime(2024-06-01))
print_0 (datetime)
2024-06-08T00:00:00Z

On this page