i need to validate a textbox

it should take either decimal values or integers and max length is 16

if it takes decimal value as input then it should contain only 14 digits in decimal place and 2 digits in fraction part
eg(1234567.12-valid) but (12345678.123 - invalid) and also(123456.12345- invalid)