crackNum 3.1 → 3.2
raw patch · 4 files changed
+9/−4 lines, 4 files
Files
- CHANGES.md +5/−1
- README.md +2/−1
- crackNum.cabal +1/−1
- src/CrackNum/Main.hs +1/−1
CHANGES.md view
@@ -1,7 +1,11 @@ * Hackage: <http://hackage.haskell.org/package/crackNum> * GitHub: <http://github.com/LeventErkok/crackNum/> -* Latest Hackage released version: 3.1, 2021-03-29+* Latest Hackage released version: 3.2, 2021-06-30++### Version 3.2, 2021-06-30++ * Add an explicit note when conversion is exact. ### Version 3.1, 2021-03-29
README.md view
@@ -23,6 +23,7 @@ Decimal: -2300000.0 Hex: -0x2.3186p+20 Rounding mode: RNE: Round nearest ties to even.+ Note: Conversion from "-2.3e6" was exact. No rounding happened. ``` ### Example: Decode a single-precision IEEE754 number float from memory-layout@@ -116,6 +117,6 @@ - You can use _,- or space as a digit to improve readability for the pattern to be decoded ``` -VIM users: You can use the https://github.com/LeventErkok/crackNum/blob/master/crackNum.vim file to+VIM users: You can use the http://github.com/LeventErkok/crackNum/blob/master/crackNum.vim file to use CrackNum directly from VIM. Simply locate your cursor on the text to crack, and use the command `:CrackNum options`.
crackNum.cabal view
@@ -1,6 +1,6 @@ Cabal-version : 2.2 Name : crackNum-Version : 3.1+Version : 3.2 Synopsis : Crack various integer and floating-point data formats Description : Crack IEEE-754 float formats and arbitrary sized words and integers, showing the layout. .
src/CrackNum/Main.hs view
@@ -343,7 +343,7 @@ note :: Maybe String -> IO () note mbs = do putStrLn $ " Rounding mode: " ++ show rm case mbs of- Nothing -> pure ()+ Nothing -> putStrLn $ " Note: Conversion from " ++ show inp ++ " was exact. No rounding happened." Just s -> putStrLn $ " Note: Conversion from " ++ show inp ++ " was not faithful. Status: " ++ s ++ "." ef :: FP -> IO ()