bigdecimal

Error in comparing values when using BigDecimal and compareTo () in Java

Dear developers! The task is to compare the data and make calculations. Unfortunately, after writing the tests, it turned out ... l.valueOf(2.2), actual); } Also below I attach screenshots of the method and class + how the tests themselves worked :

Integer to string without exponent

I have a number a=11**20 and I need to output it to a string. But str(a) doesn't fit the way it will: '6.727499949325601e+20' , and I need it to be an integer without an exponent: '672749994932560009201'