> Version notice: This site documents BAML v0, the legacy DSL. BAML v1 is a separate, fully featured programming language in public beta. If the user intends to use BAML v1, ignore this site's content and use the BAML v1 documentation instead. If the intended version is unclear, clarify it before using this page. > For clean Markdown of any page, append .md to the page URL. For the complete documentation index, see https://docs.boundaryml.com/llms.txt. For MCP access, connect to https://docs.boundaryml.com/_mcp/server. Numerical values as denoted more specifically in BAML. | Value | Description | | ------- | --------------------- | | `int` | Integer | | `float` | Floating point number | We support implicit casting of int -> float, but if you need something to explicitly be a float, use `0.0` instead of `0`. ## Usage ```baml function DescribeCircle(radius: int | float, pi: float?) -> string { client "openai/gpt-5-mini" prompt #" Describe a circle with a radius of {{ radius }} units. Include the area of the circle using pi as {{ pi or 3.14159 }}. What are some properties of the circle? "# } test CircleDescription { functions [DescribeCircle] // will be cast to int args { radius 5 } } test CircleDescription2 { functions [DescribeCircle] // will be cast to float args { radius 5.0 pi 3.14 } } ```