▁the ▁same ▁type , ▁which ▁then ▁may ▁be ▁converted ▁to ▁an ▁integer ▁if ▁necessary . ▁This ▁approach ▁may ▁avoid ▁sp ur ious ▁overflow s ▁because ▁floating - point ▁types ▁have ▁a ▁larger ▁range ▁than ▁integer ▁types . ▁Some ▁languages , ▁such ▁as ▁PHP , ▁provide ▁functions ▁that ▁round ▁a ▁value ▁to ▁a ▁specified ▁number ▁of ▁decimal ▁digits , ▁e . g . ▁from ▁ 4 3 2 1 . 5 6 7 8 ▁to ▁ 4 3 2 1 . 5 7 ▁or ▁ 4 3 0 0 . ▁In ▁addition , ▁many ▁languages ▁provide ▁a ▁printf ▁or ▁similar ▁string ▁formatting ▁function , ▁which ▁allows ▁one ▁to ▁convert ▁a ▁fraction al ▁number ▁to ▁a ▁string , ▁rounded ▁to ▁a ▁user - spec ified ▁number ▁of ▁decimal ▁places ▁( the ▁precision ). ▁On ▁the ▁other ▁hand , ▁trunc ation ▁( round ▁to ▁zero ) ▁is ▁still ▁the ▁default ▁round ing ▁method ▁used ▁by ▁many ▁languages , ▁especially ▁for ▁the ▁division ▁of ▁two ▁integer ▁values . ▁ ▁On ▁the ▁opposite , ▁CSS ▁and ▁SV G ▁do ▁not ▁define ▁any ▁specific ▁maximum ▁precision ▁for ▁numbers ▁and ▁measurements , ▁that ▁are ▁treated ▁and ▁exposed ▁in ▁their ▁DOM ▁and ▁in ▁their ▁ID L ▁interface ▁as ▁strings ▁as ▁if ▁they ▁had ▁infinite ▁precision , ▁and ▁do ▁not ▁disc rim inate ▁between ▁integers ▁and ▁floating - point ▁values ; ▁however , ▁the ▁implementations ▁of ▁these ▁languages ▁will ▁typically ▁convert ▁these ▁numbers ▁into ▁IE EE ▁ 7 5 4 ▁double - prec ision ▁floating - point ▁values ▁before ▁expos ing ▁the