Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
currtostrF -error:(
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Remote desktop software i...
by
gidesa
[
Today
at 02:25:43 pm]
Omitting semicolon on las...
by
Xenno
[
Today
at 02:04:31 pm]
Lazarus Image Editor
by
Paolo
[
Today
at 02:04:10 pm]
FPC Unleashed (inline var...
by
Thaddy
[
Today
at 01:44:27 pm]
I can write your README.m...
by
domasz
[
Today
at 09:53:02 am]
fp-h2pas: New C header tr...
by
ccrause
[
Today
at 09:48:31 am]
Can /my/ AI help me with ...
by
cdbc
[
Today
at 08:59:28 am]
The ever re-appearing /= ...
by
440bx
[
Today
at 05:05:57 am]
android attack (inc)
by
speter
[
Today
at 04:19:54 am]
Little bit...
by
n7800
[
Today
at 03:51:08 am]
[ANN] Unofficial FPC 3.3....
by
440bx
[
Today
at 01:00:04 am]
NiceGrid component for La...
by
wp
[
Today
at 12:03:57 am]
Track windows cross-platf...
by
dsiders
[April 10, 2026, 07:43:43 pm]
[ANN] PasBuild v1.8.0 Rel...
by
Graeme
[April 10, 2026, 06:43:13 pm]
Подписи кнопок панели инс...
by
Raskaton
[April 10, 2026, 06:37:48 pm]
HTTPS-сервер с ГОСТ-серти...
by
Raskaton
[April 10, 2026, 06:29:36 pm]
Strange behavior with dat...
by
JanRoza
[April 10, 2026, 06:20:38 pm]
RegExpr matchting empty s...
by
Thaddy
[April 10, 2026, 04:35:27 pm]
TLazSerial : serial port ...
by
CM630
[April 10, 2026, 03:45:42 pm]
Can't pass string to TEdi...
by
lazarusprogrammer
[April 10, 2026, 02:04:36 pm]
Messing with Gemini AI an...
by
gidesa
[April 10, 2026, 12:48:03 pm]
Lazarus Bugfix Release 4....
by
dbannon
[April 10, 2026, 10:09:07 am]
[SOLVED] How to enter gen...
by
PascalDragon
[April 10, 2026, 07:27:12 am]
AI Assist Python - to - P...
by
PascalDragon
[April 10, 2026, 07:25:42 am]
How to remove a FORM from...
by
Martin_fr
[April 10, 2026, 12:29:46 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: currtostrF -error:( (Read 4349 times)
abmservice
Jr. Member
Posts: 69
currtostrF -error:(
«
on:
April 05, 2010, 07:59:42 pm »
var
x: currency;
s:string;
begin
x:=28.997;
s:=currtostrF(x,FFFixed,2);
s should be set to 29.00 and the function displays the I 28,: 0 - why?
«
Last Edit: April 05, 2010, 08:07:41 pm by abmservice
»
Logged
Wodzu
Full Member
Posts: 171
Re: currtostrF -error:(
«
Reply #1 on:
April 05, 2010, 09:17:33 pm »
I must say I do not understand this but it works like that:
s:=currtostrF(x,FFFixed,
1
);
Logged
abmservice
Jr. Member
Posts: 69
Re: currtostrF -error:(
«
Reply #2 on:
April 06, 2010, 05:14:55 am »
I know but for me it is not a solution
it is all about the money so I have 2 decimal places
Logged
abmservice
Jr. Member
Posts: 69
Re: currtostrF -error:(
«
Reply #3 on:
April 06, 2010, 12:04:40 pm »
I used FormatCurr ('0 .00, x);
It works!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
currtostrF -error:(
TinyPortal
© 2005-2018