Register
Impressum/Legal
Contact
Webshop
Login
Objects
Theory
Tools
Information
You are here:
Home
/
Theory
/
Fragments
/
Convert deciamal notation
Saturday, February 04, 2012
Search
Navigation
Vector analysis
Algebra + Trigonometry
Algorithms
Fragments
ArchiCAD version
Change Case
Check platform
Compare values
Convert deciamal notation
Dimension Strings
Macro run detection
Object animation
Scale conversion
Solid and empty fills
String Replacement
Fragments - User Interface
Fragments - 2D / 3D
Problem
Change European decimal notation to GDL conform syntax for a correct conversion by
SPLIT
-command. Change for example
"2500,01"
into
"2500.01"
.
Script
txt="2500,01"
!»» Substitute Komma by dot ("," to ".")
DO
: s=
STRSTR
(txt,",")
IF
s
THEN
txt=
STRSUB
(txt,1,s-1)+"."+
STRSUB
(txt,s+1,
STRLEN
(txt)-s)
WHILE
s>0
PRINT
txt