Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

fp-humanize

A Lazarus package to humanize some values like Bytes, Numbers, Ordinals and Time

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Lazarus Humanize Package

This package provides functions to humanize the following:

  • Bytes: Both base 2 and base 10 - B, KB... B, Kib...
  • Comma:
    • Thousands separator for integers and reals( with precision )
    • Turn an array of strings into a comma separated string with sorting
  • CommaAnd: Turn an array of strings into a comma separated string with sorting, with the last 2 items having a and between them
  • Ordinals: 1st, 2nd, 3rd, Nth
  • Time: 1 second ago, 1 second from now, etc

There's a comprehensive demo: Demo Folder

You can find the package here: Package Folder