FlowHeater - The Data Import / Export Specialist
Welcome, Guest
Username: Password: Remember me
See also the general examples available, which may answer your question: Hello World 1 / 2 / 3 , format numbers as character strings , simple If-Then-Else , complex If-Then-ElseIf , filtering and grouping data , consolidate grouped values
  • Page:
  • 1


output number to absolute number 6 months 4 days ago #3668

  • Daniel M
  • Daniel M's Avatar Topic Author
  • Offline
  • Posts: 1
I'm needing to output numbers as absolute values. Is this only possible via .Net heater?
If so, please provide example in .net to assist me.  


Please Log in or Create an account to join the conversation.

output number to absolute number 6 months 3 days ago #3669

Hello Daniel,

You could format your number with the help of the String Format Heater as “normal” Decimal number and afterwards just replace the “-“ sign with an empty string using the String Replace Heater . On the other hand you could use the below listed C# Script for the .NET Script Heater to get the absolute number.

Please find attached a brief example.


File Attachment:

File Name: absolut-numbers.zip
File Size:9 KB

C# .NET Script to retrieve absolute numbers
public object DoWork()
    if (InValues.Length != 1)
        throw new Exception("1 input parameter expected!");

    decimal d = (decimal)InValues[0].GetDecimal();

    return Math.Abs(d);
Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.

Please Log in or Create an account to join the conversation.

Last edit: by FlowHeater-Team.
  • Page:
  • 1
Time to create page: 0.130 seconds

other Languages


FlowHeater Home

de en


Privacy Statement

Copyright © 2009-2022 by FlowHeater GmbH.
All rights reserved.

Follow us on

twitter  facebook


 de en