//
// SetupTriggerPopup::getTruncatedValue from 0xb1c278 to 0xb1c2d8 (96 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::getTruncatedValueByTag @ 0xb1c310
// > SetupTriggerPopup::textChanged @ 0xb247fc
// > ??> @ 0x6a9f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:34 +0000
//
float __fastcall SetupTriggerPopup::getTruncatedValue(SetupTriggerPopup *this, 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;
}