diff --git a/AK/JsonValue.h b/AK/JsonValue.h index 346e0212593..4413f38341a 100644 --- a/AK/JsonValue.h +++ b/AK/JsonValue.h @@ -102,6 +102,13 @@ public: u32 to_u32(u32 default_value = 0) const { return to_number(default_value); } u64 to_u64(u64 default_value = 0) const { return to_number(default_value); } +#if !defined(KERNEL) + double to_double(double default_value = 0) const + { + return to_number(default_value); + } +#endif + FlatPtr to_addr(FlatPtr default_value = 0) const { #ifdef __LP64__