Write a functional function with JavaScript to complete the following features:
1. For a given string, such as: 1234.55, convert to the correct Chinese currency description: such as: RMB 壹 贰 叁 叁 四 四 五五 五
2, the input string form can be the following: with points, such as: 123, 456, 789.00; without separators, such as: 123456789
3, the output of the Chinese currency description should comply with specifications, such as: 0.3 ---- RMB triangle; 0.33 ---- RMB triangle three points; 1 ---- RMB 元 100 ---- RMB 元 元; 1001 ---- RMB 壹 仟 零 元 整; 10000001 ---- RMB 壹 万 零 元 元; 1001001 ---- RMB 壹仟 零 壹 万 零 壹 元,
4, maximum conversion can go to 10 billion
The specific code is as follows: