Custom parmeter UPM rescaling

Hello everyone, I’m trying to create an export queue that produces both OTF and TTF fonts simultaneously, scaling the TTF to 2048 UPM. However, in doing so, it rounds the figures for certain vertical metrics, causing the hhea and OS/STYPO values to differ when they were initially the same. Am I doing something wrong?

can you give me a specific pair that shows the difference?

These are the parameters entered in the glyphs file, which are the same for all masters.

Screenshot 2023-11-08 at 09.34.59

However, the image below shows the vertical metrics scaled to 2048 UPM for the TTF fonts, where the hhea and OS/STYPO values are rounded to different figures.

Screenshot 2023-11-08 at 09.37.57

I’m not sure if this is what you asked for.

240 × 2.048 = 491.52

Apparently, it rounds up to 492 for the hheaDescender, and for the typoDescender value, it just cuts of the decimals.