Can I pass variables to a widget component and how?

You need to divide floats instead of integers.