DMXzone Server Data Formatter Support Product Page

Answered

Hi. does anyone know a way of rounding ...

Asked 10 Nov 2017 11:42:14
1
has this question
10 Nov 2017 11:42:14 Serhat ALPASLAN posted:
Hi. does anyone know a way of rounding off the value of a variable to 2 decimal places in dmxzone data formatter ?

So;
$number = 2.3489;
becomes;
$numberRounded = 2.35;

thnx.

Replies

Replied 11 Nov 2017 08:15:10
11 Nov 2017 08:15:10 Teodor Kuduschiev replied:
Hello Serhat
This is one of the basic functions of the App Connect Data Formatter:
Replied 11 Nov 2017 08:17:19
11 Nov 2017 08:17:19 Serhat ALPASLAN replied:
You are using app connect .. but I need it with server connect ...
How can I enter parameters

Replied 11 Nov 2017 08:45:24
11 Nov 2017 08:45:24 Teodor Kuduschiev replied:
What exactly are you trying to round there?
Replied 11 Nov 2017 08:48:53
11 Nov 2017 08:48:53 Serhat ALPASLAN replied:
I know it is working app connect side .. I have to round() to my field (int) before insert process..
I need this process on server side
Replied 11 Nov 2017 08:52:14
11 Nov 2017 08:52:14 Teodor Kuduschiev replied:
We will check this and fix it in the next update of server data formatter.
Replied 11 Nov 2017 08:56:10
11 Nov 2017 08:56:10 Serhat ALPASLAN replied:
Thank you Teodor ...
Replied 03 Jul 2018 10:36:20
03 Jul 2018 10:36:20 George Petrov replied:
Round is just for full numbers Serhat. If you want to round with decimals just use the “Format Number”
Replied 03 Jul 2018 10:45:33
03 Jul 2018 10:45:33 Serkan ATABAY replied:
Perfectttttttttttt ......

I can now proceed with the billing project.
Replied 03 Jul 2018 10:48:29
03 Jul 2018 10:48:29 Serhat ALPASLAN replied:
Thank you George ... Now I can proceed with the my old voip billing projects ....

Reply to this topic