3
�
�^9P � @ s� d dl Z d dlZd dlZd dlZd dlZeedd�dkrBejd��ejdej ej
B �jZdd
d�Z
dZG d
d� dej�Zedkr�ej� dS )� N�float_repr_style� ZshortzHcorrectly-rounded string->float conversions not available on this systemam # A numeric string consists of:
(?P<sign>[-+])? # an optional sign, followed by
(?=\d|\.\d) # a number with at least one digit
(?P<int>\d*) # having a (possibly empty) integer part
(?:\.(?P<frac>\d*))? # followed by an optional fractional part
(?:E(?P<exp>[-+]?\d+))? # and an optional exponent
\Z
�5 i� � c C s� t | �}|dkrtd��|jd�p$d}t|jd�| �}t|jd�pFd�t|� }|jd�d k}|d
t|d� d
td| � } }
| s�|r�dS d
S | j� |
j� }||dkr�| |? n| | >