Posted By

buscarini on 08/07/06


Tagged

desarrollo


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

anayhk


Usar el módulo gmpy para números racionales


 / Published in: Python
 

URL: http://gmpy.sourceforge.net/

  1. import gmpy
  2.  
  3. num = gmpy.mpq(5,2)
  4. num2 = gmpy.mpq(10,2)
  5.  
  6. print(num+num2)

Report this snippet  

You need to login to post a comment.