original mysql decimal implementation
decimal support