fork(1) download
  1. import re
  2.  
  3. regex = r"^```[^\S\r\n]*[a-z]*(?:\n(?!```$).*)*\n```"
  4. txt = ("Problem with encoding a very large BigInteger or BigDecimal without fraction\n\n"
  5. "We have an issue to encode a very large BigDecimal. For example, when I tried to encode _7.533938258014959827307132527342E+545_ I got the following error:\n\n"
  6. "``` java\n"
  7. "Error com.n1analytics.paillier.EncodeException: Input value cannot be encoded.\n"
  8. "at com.n1analytics.paillier.StandardEncodingScheme.encode(StandardEncodingScheme.java:115)\n"
  9. "at com.n1analytics.paillier.StandardEncodingScheme.encode(StandardEncodingScheme.java:239)\n"
  10. "...\n"
  11. "```\n\n"
  12. "The reason why I got the error is as follows:")
  13.  
  14. txt = re.sub(regex, '', txt, 0, re.MULTILINE)
  15. print(txt)
Success #stdin #stdout 0.02s 9456KB
stdin
Standard input is empty
stdout
Problem with encoding a very large BigInteger or BigDecimal without fraction

We have an issue to encode a very large BigDecimal. For example, when I tried to encode _7.533938258014959827307132527342E+545_ I got the following error:



The reason why I got the error is as follows: