---
title: "asDouble"
sidebar_label: "asDouble"
description: "Kotlin binding reference: asDouble."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Json](index.md)/[asDouble](asDouble.md)

# asDouble

[common]\
fun [asDouble](asDouble.md)(): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)

The value as a double (any number reads through); a non-number fails with `INVALID_ARGUMENT`.