FLOOR Operation

How to use the FLOOR operation with Computed Attributes

Definition

The FLOOR operation returns a number rounded down based on a desired multiple.

Example

$ATT.price = 14.92

FLOOR($ATT.price,0.05)

Result = 14.90

Syntax Guide

FLOOR(number_attribute, multiple)

number_attribute - A number attribute that is the value you want to round

multiple - The multiple to which you want to round