[core] bugfix on _resize when using BC Math and on some locales (as french)