English
Forum

string$ in dezimalzahl ! transfiguring

 
- Page 1 -



holmol93
Hello together,

there a function, circa a String a !- Variable umzuwandeln?

Strings in Integerwerte can Yes via integer%=string$ transfiguring.

with Dezimalzahlen works the however only if the String a Ganzzahl is means zB 1.

If one a String with the Content "1.5" umwandelt, is the Result in the !-Variable "0.000000"...

have I something overlooking?

Gruess,
danny
 
07/11/13  
 



« this Posting watts as Solution marked. »


Thomas
Freier
think, this lane seek You. Search and supplant of unerwünschten characters/ -follow (z.B.: 12,.34) must still erfolgen, as they in the string vorkommen could.
CompileMarkSeparation
cls
var a$="12,44"
' min. Komma in einen Punkt umwandeln, wenn Komma im String möglich
a$=translate$(a$,",",".")
var a!=val(a$)
print a!
waitinp
 
Gruß Thomas
Windows XP SP2, XProfan X2
07/11/13  
 




holmol93
Heyhoo

Thank you, works super!

The Überprüfung had I not at all install, there it here circa Artikelpreise goes, The in a DB as String stored are there can I relatively sure his, that The in the right rule stored get
 
07/12/13  
 




Thomas
Freier

there it here circa Artikelpreise goes, The in a DB as String stored are

here's The menace, if the DB-Feldtyp not nummerisch is. gladly becomes over the Edit-area The input on numbers and a comma terminable and then in the DB as z.B.: 231,44 stored. saving later The Anpassung for lists, there with us the comma the Dezimaltrenner is.
 
Gruß Thomas
Windows XP SP2, XProfan X2
07/12/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.737 Views

Untitledvor 0 min.
Uwe Lang vor 23 Tagen
Gast.081507/16/24
E.T.01/14/24
Normann Strübli06/07/20
More...

Themeninformationen

this Topic has 2 subscriber:

Thomas Freier (2x)
holmol93 (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie