ó
6]c           @   s1   d  d l  Z  e d  Z e d  Z d   Z d S(   i˙˙˙˙Nt   infs   -infc         C   sż   t  |   }  |  t k r d S|  t k r, d St j |   r? d St |   } | j d  } |  d k rˇ | d k rˇ d j | d | d | !| | d  j d	  } d
 j | | d  S| Sd  S(   Ns   +Infs   -Inft   NaNt   .i    i   s
   {0}.{1}{2}i   s   0.s	   {0}e+0{1}(	   t   floatt   INFt	   MINUS_INFt   matht   isnant   reprt   findt   formatt   rstrip(   t   dt   st   dott   mantissa(    (    s6   lib/python2.7/site-packages/prometheus_client/utils.pyt   floatToGoString   s    1(   R   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/prometheus_client/utils.pyt   <module>   s   