---
title: "DefaultMoneyStrategy"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/config/entity/default-money-strategy.ts" sourceLine="14" packageName="@vendure/core" since="2.0.0" />

A <DocsLink href="/reference/typescript-api/money/money-strategy#moneystrategy">MoneyStrategy</DocsLink> that stores monetary values as a `int` type in the database.
The storage configuration and rounding logic replicates the behaviour of Vendure pre-2.0.

```ts title="Signature"
class DefaultMoneyStrategy implements MoneyStrategy {
    readonly moneyColumnOptions: ColumnOptions = {
        type: 'int',
    };
    readonly precision: number = 2;
    round(value: number, quantity:  = 1) => number;
}
```
* Implements: <DocsLink href="/reference/typescript-api/money/money-strategy#moneystrategy">`MoneyStrategy`</DocsLink>



<div className="members-wrapper">

### moneyColumnOptions

<MemberInfo kind="property" type={`ColumnOptions`}   />


### precision

<MemberInfo kind="property" type={`number`}   />


### round

<MemberInfo kind="method" type={`(value: number, quantity:  = 1) => number`}   />




</div>
