chinese_number 1.0.2 copy "chinese_number: ^1.0.2" to clipboard
chinese_number: ^1.0.2 copied to clipboard

Convert Chinese characters into Dart numbers.

example/example.dart

import 'package:chinese_number/chinese_number.dart';

void main() {
  final str = '拾壹万叁仟肆佰贰拾壹';
  print(ChineseNumber.tryParse(str));

  final n = 214323232003;
  print(n.toSimplifiedChineseNumber());

  final f = 3.1415926;
  print(f.toSimplifiedChineseNumber());
}
4
likes
145
pub points
73%
popularity

Publisher

verified publisherhetu.dev

Convert Chinese characters into Dart numbers.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

characters

More

Packages that depend on chinese_number