@jelster @sebavan sorry I didn’t explain well. I’m not using a BabylonJs vector, I’m using a custom vector (an array of numbers). I had Issues with some very small calculations, but I found a mistake in the algorithm and it is fixed now Using custom vector allows me to use more than 3 or 4 values, then I can add scale, rotation, colors, AI params, or whatever.

This is the algorithm (there was a wrong reduce there):

```
const increaseVector = (from: number[], to: number[], speed: number, completed?: () => void): number[] => {
const complete = () => {
if (completed) {
completed();
}
return to;
};
const director = [];
for (let i = 0; i < from.length; i++) {
director.push(to[i] - from[i]);
}
let lengthPow2 = 0;
director.forEach((value) => (lengthPow2 += Math.pow(value, 2)));
if (lengthPow2 < MIN_DISTANCE) {
return complete();
}
const length = Math.sqrt(lengthPow2);
const directorNormalized = director.map((value) => value / length);
let result = [];
for (let i = 0; i < from.length; i++) {
result.push(increaseValue(from[i], to[i], Math.abs(directorNormalized[i]) * speed));
}
return result;
};
```

My question wasn’t about JS nor BabylonJs itself, my question is which one of the Big Decimals libraries should I use beside BabylonJs in case I need it.

E.g of some libraries: A comparison of BigNumber libraries in JavaScript - DEV Community

Sorry for the confussion on the topic.