[ 
https://issues.apache.org/jira/browse/NUMBERS-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17742936#comment-17742936
 ] 

Dimitrios Efthymiou commented on NUMBERS-198:
---------------------------------------------

[~erans] OK. I love refactoring. I will look through JIRA
to see if there are any tickets that mention the word "refactor".

I will send an email to dev commons with a number of ideas and

hopefully someone can tell me, yes, do the 2nd, 5th, 7th, 9th and 14th.

> New function - reverse the digits of a number
> ---------------------------------------------
>
>                 Key: NUMBERS-198
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-198
>             Project: Commons Numbers
>          Issue Type: New Feature
>          Components: core
>            Reporter: Dimitrios Efthymiou
>            Priority: Minor
>              Labels: features
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I propose a new function for ArithmeticUtils that takes a number and it 
> returns the number with the reversed digits. Some use cases are:
>  # *Palindrome Checking:* The algorithm can be used as a part of a function 
> to check if a number is a palindrome (a number that remains the same when its 
> digits are reversed).
>  # *Data Manipulation:* This algorithm could be used in a data manipulation 
> or data cleaning process. For instance, in a situation where the digit order 
> of numerical data has been systematically recorded incorrectly, this 
> algorithm could be used to correct the data.
>  # *User Interface (UI) Design:* In cases where the presentation of numbers 
> needs to be manipulated for display purposes, this could be useful. For 
> instance, if a UI design decision prefers displaying digits in a reverse 
> order.
>  # *Digital Signal Processing:* The bit-reversal operation is a crucial part 
> of certain algorithms, such as the Fast Fourier Transform (FFT). Although the 
> current method works with integers, a similar algorithm could be used for 
> bit-reversal operations.
>  # *Cryptographic or Security Methods:* This method might be used as part of 
> a larger algorithm in cryptography or security. However, this by itself does 
> not provide any significant security benefits.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to