New answers tagged number-representation
Given the limitations described in the comments, a possibility is to use Ratiolize[x,0] in combination with SetPrecision or SetAccuracy. E.g.: Rationalize[SetPrecision[0.33333, 5], 0] 1/3 While Rationalize[SetAccuracy[0.3333, 5], 0] (* one less 3 *) 3332 / 9997 The point is to set Accuracy or Precision to the number of digits that would be ...
Top 50 recent answers are included