I am trying to use Trunc
Trunc(FloatValue), so I say Trunc(variable) and it says Trunc is not defined, how do i use this Trunc function?
Solved! Go to Solution.
Just want to confirm... the project that you're trying to use this in, is it being developed in DelphiScript?
You can tell if, in a script unit, you see at the bottom of the screen the indication of the script language.
The reason I ask is because the Trunc function is a DelphiScript only function. If you're not using DelphiScript, that function is not available to you.