# Getting result with C:\\wamp64\\www\\.....

**URL:** <https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294>\
**Category:** Greetings\
**Created:** [June 21, 2016, 5:40am UTC](https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294 "2016-06-21T05:40:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![new17](https://www.phphelp.com/letter_avatar_proxy/v4/letter/n/85f322/32.png) [@new17](https://www.phphelp.com/u/new17)\
**Post date:** [June 21, 2016, 5:40am UTC](https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294/1 "2016-06-21T05:40:25Z")

</div>

I am using a localhost and wampserver.

I have run the following script:

\<?php $x = 10.365; var\_dump($x); ?\> 

I am getting the following result:

C:\wamp64\www\test3.php:7:float 10.365

If any one can guide me why I am getting this result. The correct answer on the web server is: float(10.365)

Thank you.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [June 21, 2016, 11:52am UTC](https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294/2 "2016-06-21T11:52:58Z")

</div>

Well, you got the correct results. Using the var\_dump() function is different depending on your version of PHP.

It is clear from your results that you are using the latest PHP 7.0… Therefore, you got the correct results.

If you want to just print the value of the variable instead of dumping the internal value of the variable, just use echo $x;  
Normally, when you display a floating number, you use formatting to display it in the format you wish it to show in.  
Here is the PHP manual’s version of the formatting functions. See the examples below where people posted.  
[http://php.net/manual/en/function.number-format.php](http://php.net/manual/en/function.number-format.php)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![astonecipher](https://www.phphelp.com/user_avatar/www.phphelp.com/astonecipher/32/2797_2.png) [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Post date:** [June 21, 2016, 5:26pm UTC](https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294/3 "2016-06-21T17:26:20Z")

</div>

Not sure why you think you are NOT getting the correct answer, the number and type are correct, so I don’t actually see an issue.

---

<div class="post-metadata">

**Author:** ![new17](https://www.phphelp.com/letter_avatar_proxy/v4/letter/n/85f322/32.png) [@new17](https://www.phphelp.com/u/new17)\
**Post date:** [June 22, 2016, 5:55am UTC](https://www.phphelp.com/t/getting-result-with-c-wamp64-www/25294/4 "2016-06-22T05:55:20Z")

</div>

Thank you to both ErnieAlex and astonecipher for the response and giving the tips.

I think I must only use just echo $x ; instead of dumping the internal value. This way it would be simple and precise.

Appreciate for confirming to me that the result is correct.

All the best.
