Open this example in the interactive library
Source code
SELECT 100.0*2/8 AS percent;
Sample output
[
{
"percent": 25
}
]
Calculate a percentage with real division using SQLite.
Open this example in the interactive library
SELECT 100.0*2/8 AS percent;
[
{
"percent": 25
}
]