79320250

Date: 2024-12-31 15:12:56
Score: 0.5
Natty:
Report link

In case you have a string with a list of floats, you can convert it with this snippet:

var dataList = "2.1, 3.1, -4.5"
var dataListFloats = dataList.match(/[-+]?\d+(?:\.\d+)?/g).map(Number)

This will contain both negative and positive floats within the array.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mxn