Versuch mal anstatt 5 / 1023
5.0 / 1023.0
sonst rechnet der Compiler mit ganzzahlen und die Kommstellen fallen weg.