Formatting real values in Reply tab

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
nvdvelden
Posts: 6
Joined: Wed Mar 10, 2004 4:48 am

Formatting real values in Reply tab

Post by nvdvelden »

Hi,

I am using calculations to determine wether a test is ok or not. The outputvalue is a real. How can i format this value. I now have a 14 digit output. I would like to decrease this to about 2.

Regards

Nico
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

14 digits???
What test method do you use? Version of HostMonitor?

Regards
Alex
nvdvelden
Posts: 6
Joined: Wed Mar 10, 2004 4:48 am

Post by nvdvelden »

I use the result of a division made on the server and accessed by ACCESS
nvdvelden
Posts: 6
Joined: Wed Mar 10, 2004 4:48 am

Post by nvdvelden »

In addition to my previous answer: The version of HM is 4.42
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

accessed by ACCESS
So why don't you let access round the number??
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Still don't get whole picture...

>What test method do you use?

Now I can assume you are using ODBC test method to get some field from some database. Am I right?

Regards
Alex
nvdvelden
Posts: 6
Joined: Wed Mar 10, 2004 4:48 am

Post by nvdvelden »

Yes,

That's right.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think you can modify your SQL query a little (use CAST function).
E.g. if you are using query like SELECT field1 FROM table1, change it to SELECT CAST(field1 AS MONEY) FROM table1

Regards
Alex
nvdvelden
Posts: 6
Joined: Wed Mar 10, 2004 4:48 am

Post by nvdvelden »

I converted the output into integer. The accuracy is still enough.

Thanks
Post Reply