#!/usr/bin/perl -w use strict; my $foo = 17432; my $bar = 3; $foo =~ s/([0-9]+)([0-9]{$bar})/$1.$2/; print $foo;
MP
In reply to Re: Help with decimals
by Monky Python
in thread Help with decimals
by La12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |