FIX: relativeAgeMediumSpan was off by 1 REFACTOR: extracted decimalAdjust & round functions from the poll plugin
6 lines
144 B
JavaScript
6 lines
144 B
JavaScript
import decimalAdjust from "discourse/lib/decimal-adjust";
|
|
|
|
export default function(value, exp) {
|
|
return decimalAdjust("round", value, exp);
|
|
}
|