From 0ef1b02ee04a5abbe05d047a46e5de33554b1410 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 30 Jan 2023 21:27:32 +0100 Subject: Add calc constants --- tests/typ/compute/calc.typ | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 195e3285..67579493 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -12,6 +12,10 @@ #test(float("31.4e-1"), 3.14) #test(type(float(10)), "float") +--- +#test(calc.round(calc.e, digits: 2), 2.72) +#test(calc.round(calc.pi, digits: 2), 3.14) + --- // Error: 6-10 expected boolean, integer, float, or string, found length #int(10pt) -- cgit v1.2.3