Notifications
Clear all
Topic starter
14/01/2022 8:44 pm
In order to create an indicator for the fuel used, I need to get a numeric value out of [GameRawData.SessionData.CarSetup.Chassis.Rear.FuelLevel] which atm it's sitting at "55.0 L" and in order to operate with it, I need it formatted to "55.0"
Is there any function I can use to achieve this format of data that is given with its units?
Thank you all very much for your time!
14/01/2022 9:30 pm
Hi,
Try: replace([GameRawData.SessionData.CarSetup.Chassis.Rear.FuelLevel], ' L', '')
Topic starter
14/01/2022 10:38 pm
@romainrob the man himself!
Thank you very much man, that totally worked. Never used that function and it truly opens a ton of possibilities for me!
Merci beaucoup!