It supports a fixed 38 decimal digits of precision and 9 decimal digits of scale, and values
are in the range of -99999999999999999999999999999.999999999 to
99999999999999999999999999999.999999999.
Example:
use Google\Cloud\BigQuery\BigQueryClient;
$bigQuery = new BigQueryClient();
$numeric = $bigQuery->numeric('99999999999999999999999999999999999999.999999999');
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# BigQuery Client - Class Numeric (1.34.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.34.0 (latest)](/php/docs/reference/cloud-bigquery/latest/Numeric)\n- [1.33.1](/php/docs/reference/cloud-bigquery/1.33.1/Numeric)\n- [1.32.0](/php/docs/reference/cloud-bigquery/1.32.0/Numeric)\n- [1.31.1](/php/docs/reference/cloud-bigquery/1.31.1/Numeric)\n- [1.30.3](/php/docs/reference/cloud-bigquery/1.30.3/Numeric)\n- [1.29.0](/php/docs/reference/cloud-bigquery/1.29.0/Numeric)\n- [1.28.3](/php/docs/reference/cloud-bigquery/1.28.3/Numeric)\n- [1.27.0](/php/docs/reference/cloud-bigquery/1.27.0/Numeric)\n- [1.26.1](/php/docs/reference/cloud-bigquery/1.26.1/Numeric)\n- [1.25.1](/php/docs/reference/cloud-bigquery/1.25.1/Numeric)\n- [1.24.2](/php/docs/reference/cloud-bigquery/1.24.2/Numeric)\n- [1.23.10](/php/docs/reference/cloud-bigquery/1.23.10/Numeric) \nReference documentation and code samples for the BigQuery Client class Numeric.\n\nRepresents a value with a data type of\n[Numeric](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#numeric_type).\n\nIt supports a fixed 38 decimal digits of precision and 9 decimal digits of scale, and values\nare in the range of -99999999999999999999999999999.999999999 to\n99999999999999999999999999999.999999999.\n\nExample: \n\n use Google\\Cloud\\BigQuery\\BigQueryClient;\n\n $bigQuery = new BigQueryClient();\n\n $numeric = $bigQuery-\u003enumeric('99999999999999999999999999999999999999.999999999');\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery\n\nMethods\n-------\n\n### __construct\n\n### get\n\nGet the underlying value.\n\n### type\n\nGet the type.\n\n### formatAsString\n\nFormat the value as a string.\n\n### __toString\n\nFormat the value as a string."]]