in reply to matching a number

Perhaps Test::Number::Delta meets your needs?