Hello friends.
Please, when I use
Print using " ###.# "; 1.19
the result is 1.1 and not 1.2 !
How do I solve this problem ?
tks
print using "###.##" (resolved)
-
- Posts: 18
- Joined: Feb 13, 2006 12:34
- Location: brasil
- Contact:
hi,
you could also tryregards
ytwinky
same here(XP, SP3 etc., FB0.22, FBEdit 1.0.7.6c)Vendan wrote:..I just tried it and it printed out 1.2
you could also try
Code: Select all
#include "vbcompat.bi"
Print Format(1.19, "##.#")
ytwinky
Re: print using "###.##"
Luis antonio Porto wrote:Print using " ###.# "; 1.19
the result is 1.1 and not 1.2 !
How do I solve this problem ?
Code: Select all
#IF __FB_VERSION__ < "0.16"
CONST ROUND_FIX1 = .05
#ELSE
CONST ROUND_FIX1 = .0
#ENDIF
Print using " ###.# "; 1.19 + ROUND_FIX1
Whatever the fbc version:
Code: Select all
Print using " ###.# "; Cint(1.19 * 10) / 10
-
- Posts: 18
- Joined: Feb 13, 2006 12:34
- Location: brasil
- Contact:
print using "###.##" resolved
Several solutions, some very interesting, thank you (all)
Luis
Luis