gpt4 book ai didi

smalltalk - 将数字(货币)转换为单词的方法

转载 作者:行者123 更新时间:2023-12-01 01:05:14 27 4
gpt4 key购买 nike

Pharo 有什么方法可以将数字转换为单词。
例如:1200 = 一千二百而已。

实现起来并不难,只是想知道。

最佳答案

Integer>>asWords会这样做。
1200 asWords返回 'one thousand, two hundred' .

我通过使用 Pharo 的 Finder 工具搜索“千”找到了它。

关于smalltalk - 将数字(货币)转换为单词的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19385288/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com