Add initial implementation for decimal function