As an adjective, the singular is used. a ten-dollar bill, a twelve-foot plank, a 20-function calculator .*
As a noun, the plural is used (unless you are talking about only one thing, of course). ten dollars, twelve feet, 20 functions, one dollar, one foot, one function.
CJ
*These...