BigDecimal extends the native Integer class to provide the to_d method.
When you require the BigDecimal library in your application, this method will be available on Integer objects.