scala migration - some draft for numeric features