1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

add floor() function

This commit is contained in:
Werner Almesberger
2012-05-26 14:13:58 -03:00
parent e0351bdf73
commit 9a6c7d2742
6 changed files with 51 additions and 8 deletions

22
test/floor Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
. ./Common
###############################################################################
fped "floor: 4.7mm" <<EOF
%print floor(4.7mm)
EOF
expect <<EOF
4mm
EOF
#------------------------------------------------------------------------------
fped "floor: -1.2m" <<EOF
%print floor(-1.2)
EOF
expect <<EOF
-2
EOF
###############################################################################