Code Monkey home page Code Monkey logo

a2c-nums's Introduction

a2c-nums

Convert Arabic numbers to Chinese characters.

usage

#import "@preview/a2c-nums:0.0.1": int-to-cn-num, int-to-cn-ancient-num, int-to-cn-simple-num, num-to-cn-currency

#int-to-cn-num(1234567890)

#int-to-cn-ancient-num(1234567890)

#int-to-cn-simple-num(2024)

#num-to-cn-currency(1234567890.12)

Functions

int-to-cn-num

Convert an integer to Chinese number. ex: #int-to-cn-num(123) will be 一百二十三

int-to-cn-ancient-num

Convert an integer to ancient Chinese number. ex: #int-to-cn-ancient-num(123) will be 壹佰贰拾叁

int-to-cn-simple-num

Convert an integer to simple Chinese number. ex: #int-to-cn-simple-num(2024) will be 二〇二四

num-to-cn-currency

Convert a number to Chinese currency. ex: #int-to-cn-simple-num(1234.56) will be 壹仟贰佰叁拾肆元伍角陆分

more details

Reference demo.typ for more details please.

a2c-nums's People

Contributors

soarowl20240613 avatar extua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.