pg.scalars.Scalar

Accessible via pg.scalars.Scalar, pg.evolution.Scalar.

class Scalar[source]

Bases: pg.Object

Interface for step-based scalar.

Methods:

call(step)

Implementation.

ceil()

Returns the ceiling of current scalar.

floor()

Returns the floor of current scalar.

abstract call(step)[source]

Implementation. Subclass should override this method.

Return type:

Any

ceil()[source]

Returns the ceiling of current scalar.

floor()[source]

Returns the floor of current scalar.