apoc.convert.toFloat
Function APOC Core Deprecated
apoc.convert.toFloat(value) | tries it’s best to convert the value to a float
Usage Examples
Convert string to float
return apoc.convert.toFloat("1.7") AS output;| Output | 
|---|
| 1.7 | 
Convert integer to float
return apoc.convert.toFloat(1) AS output;| Output | 
|---|
| 1.0 | 
| This function has been deprecated and will be removed in version 5.0. The functionality is replaced by the Neo4j functions  | 
| Input | apoc.convert.toFloat | toFloat() | toFloatOrNull() | 
|---|---|---|---|
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | 
 | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | 
 | Error | 
 | 
| 
 | 
 | Error | 
 | 
| Node | 
 | Error | 
 | 
| Relationship | 
 | Error | 
 | 
| Path  | 
 | Error | 
 | 
1. Use 
toFloat(toInteger()) for this behaviour in Neo4j