HI all, I've just encountered a small bug that's occurring with this code. When a user enters in a value for my:ChequeAmount, the text generated in the my:AmountWords field is sometimes off by a penny. I've gone through and tested all denominations and it appears that the pence (cents) are falling short on occurrences of .14, .17, .20, .23, .39, .42, .45, .48, .64, .67, .70, .73, .89, .92, .95 and .98.
So basically if a user inputs £150.98 into the my:ChequeAmount field, my:AmountWords is spelling out One Hundred Fifty Pounds and Ninety-Seven Pence. The really strange thing is that this doesn't happen every single time but is always happening with my:ChequeAmount has a pence value equal to one of the above.
I've attached the code I'm using so if anyone has any thoughts on what could be causing this I'd be greatful for your input!