[Python] Printing a numpy variable with and without format gives different values

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    While working with numpy, I observed something strange. When I print a variable using print() and I format the print usingprint(f'{<variable>:.9f}) gives different values.

    For example, [​IMG]

    or

    [​IMG]

    I am not sure why this is happening. the variable lidar_synchronized_timeshamps is first read in as list of strings, then converted to numpy array using np.asarray().astype(np.float128). Any help in understanding whats happening here is really appreciated.

    Continue reading...

Compartilhe esta Página