RippleSoftware Engineer · Phone ScreenCodemia practiceConvert XRP Decimal Strings to Integer Drops Without Floats
Write a function that converts a user-supplied XRP amount string such as "12.000345" into an integer number of drops (1 XRP = 1,000,000 drops), rejecting malformed input, negative values, more than six decimal places, and amounts above the total XRP supply. Also write the reverse conversion back to a canonical string.