Hi,
'str_for_num' is the function you are looking for but it works same as digits display so you will need to edit the string each time the variable changes in order to remove mantissas last zeros.

Click to reveal..

Code:
STRING *str_for_num_custom ( STRING *_str, var _num )
{
	STRING *_str2 = str_for_num ( _str, _num );
	if ( !str_stri ( _str2, "." ) )
		return _str2;
	var _count = 0;
	var _pos = str_len ( _str2 );
	var _last = _pos - 2;
	for ( ; _pos>_last; _pos-=1 )
	{
		if ( str_getchr ( _str2, _pos ) != 48 )
			break;
		_count += 1;
	}
	str_trunc ( _str2, _count );
	return _str2;
}




Salud!