Jump to content

[SOLVED] Displaying zeros in echo


horsetags

Recommended Posts

Hi,

I have a simple include with a price list -

 

$AZ2L=41.0;

 

and i echo this on the page

 

 

<?php echo($AZ2L); ?>

 

But the result is -

 

41

 

and i would like

 

41.00

 

Being a bit of a beginner, i expect this is simple, but I am not sure how to do this.

 

 

If anyone can help that would be great.

 

Thanks in advance

 

Paul

 

Link to comment
https://forums.phpfreaks.com/topic/73829-solved-displaying-zeros-in-echo/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.