This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
VALUE
Dan Gorman edited this page Nov 29, 2018
·
2 revisions
VALUE
converts numbers in string format into numbers.
VALUE(arg1)
-
arg1
is a string of a recognizable number
If we receive a response containing driving data, like that shown below:
{
"data":{
"driver_stats":{
"driver_1":{
"avg_mpg":"18",
"top_mpg":"22"
},
"driver_2":{
"avg_mpg":"16",
"top_mpg":"20"
}
}
}
}
If we'd like to convert some of the mileage data to a numerical value, we can use VALUE
:
VALUE(data.driver_stats.driver_1.avg_mpg)
Which returns 18
.