//
// SetupTriggerPopup::getTruncatedValue from 0x9e6f7c to 0x9e6fdc (96 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::getTruncatedValueByTag @ 0x9e7014
// > SetupTriggerPopup::textChanged @ 0x9ed300
// > ??> @ 0x4be88
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float SetupTriggerPopup::getTruncatedValue(SetupTriggerPopup *a1, float a2, int a3)
{
float v4; // s0
if ( a3 <= 0 )
return (float)(int)a2;
if ( a3 == 1 )
v4 = 10.0;
else
v4 = powf(10.0, (float)a3);
return roundf(a2 * v4) / v4;
}