A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
This is a known issue - floating point calculations in Excel produce tiny rounding errors, due to the way numbers with decimals are stored and processed.
Simply use the ROUND function to mitigate this. Since both inputs have 1 decimal place, use
=ROUND(MOD(23.1, 2.1), 1)