Question Decimal formatting

anandknr

Member
Hi all,

A basic question here - I have some difficulty in understanding a format usage of ">" Vs "9".

For example; why below two statement outputs different values ?

string(3.1634567,'>>>>>.99<<<<<') is 3.163457 and
string(3.1634567,'>>>>>.999<<<<') is 3.1634567
 

Cringer

ProgressTalk.com Moderator
Staff member
Ah yes another bug. There seem to be quite a few bugs surrounding decimal formatting.
 

Cringer

ProgressTalk.com Moderator
Staff member
That's a ridiculous restriction. Why can't they just pad the format if it's inbalanced?
 
Top