Skip to main content
simply more productive
The Data Specialist

✅ Easy data integration - import/export
✅ No programming required thanks to visual modeling
✅ Simple ETL tool with versatile options

Flowheater Chart

output number to absolute number

More
4 years 4 months ago #3668 by Daniel M
output number to absolute number was created by Daniel M
Hello, 
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.  
Thanks!

 

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

More
4 years 4 months ago - 4 years 4 months ago #3669 by FlowHeater-Team
Replied by FlowHeater-Team on topic output number to absolute number
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.03 KB


C# .NET Script to retrieve absolute numbers
Code:
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
Last edit: 4 years 4 months ago by FlowHeater-Team.

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

Time to create page: 0.133 seconds
FlowHeater Logo
FlowHeater - The Data Specialist
Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.
Legal information
Support & Contact
Contact

Phone:
0951 / 9933 9792

eMail:
info@flowheater.net


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