[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Type](https://evolu.dev/docs/api-reference/common/Type) › nonNegativeDecimalString

```ts
const nonNegativeDecimalString: BrandFactory<
  "NonNegativeDecimalString",
  DecimalString,
  NonNegativeDecimalStringError
>;
```

Defined in: [packages/common/src/Type.ts:7002](https://github.com/evoluhq/evolu/blob/f0109fb501a593010e858e39248dde1200eeb2d7/packages/common/src/Type.ts#L7002)

[DecimalString](https://evolu.dev/docs/api-reference/common/Type/variables/DecimalString) Brand requiring a value greater than or equal to zero.

### Example

```ts
import {
  assertOk,
  DecimalString,
  nonNegativeDecimalString,
} from "@evolu/common";

const NonNegative = nonNegativeDecimalString(DecimalString);

assertOk(NonNegative.fromUnknown("0.5"), "0.5");
```