[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:7008](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Type.ts#L7008)

[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");
```