Skip to content
masterclass Buddy

Zod · Method

.finite

z.number().finite() validates finite numbers. It rejects Infinity, -Infinity, and NaN.

Last updated

Syntax

z.number().finite()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • z.number()
  • z.nan()
  • z.safeParse()
  • z.int()

Source: Defining schemas | Zod. Checked 2026-11-03.