Przejdź do treści

Programowanie

Notatki z wiedzy informatycznej

Powrót

Kategorie

  • AI
  • Ajax
  • Apache
  • Bez kategorii
  • Bootstrap
  • C#
  • cakePHP 3
  • cakePHP 4
  • cakePHP 5
  • Certyfikaty
  • Composer
  • Conda – Python
  • CSS3
  • D3js
  • Docker
  • Ethereum
  • GIT
  • Google
  • Hosting
  • HTML
  • HTTP
  • Javascript
  • Linux
  • Mail
  • MongoDB
  • MySQL
  • Node.js
  • OpenSSL
  • PHP
  • Plugins
  • PostgreSQL
  • Przeglądarki
  • React
  • Redis
  • sass
  • Security
  • SEO
  • Windows
  • WordPress

Javascript – formatowanie liczb finansowych

var tc = new Intl.NumberFormat('pl-PL', { style: "currency", currency: "PLN" }).format(total_costs);
tc: 2 136 703,77 zł
var bilans = new Intl.NumberFormat('pl-PL').format(bilans);
bilans: 7 324 432,32
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
Data publikacji 1 kwietnia 20251 kwietnia 2025Autor jornathanKategorie Javascript

Nawigacja wpisu

Poprzedni Poprzedni wpis: Autoryzacja next-auth.js
Następny Następny wpis: Postgresql instalacja
Dumnie wspierane przez WordPress