Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e1d67982
authored
Aug 08, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gewerbehof commits
1 parent
f9705cb5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
class_mcCsv.inc.php
class_mcNumber.inc.php
doOnTheEnd.php
class_mcCsv.inc.php
View file @
e1d6798
...
...
@@ -40,6 +40,13 @@ class mcCsv {
}
public
static
function
transformStringToCsv
(
$param_string
)
{
if
(
strpos
(
$param_string
,
'.'
)
!==
false
)
{
$param_string
=
str_replace
(
'.'
,
','
,
$param_string
);
}
return
$param_string
;
}
/**
*
* @param array $param_csvConfig -- array(0=>'col1',1=>'col2',2=>'col3')
...
...
class_mcNumber.inc.php
View file @
e1d6798
<?php
class
mcNumber
{
public
static
function
round2
(
$param_number
)
{
return
round
(
$param_number
,
2
);
}
public
static
function
form2
(
$param_number
)
{
return
number_format
(
round
(
$param_number
,
2
),
2
,
","
,
"."
);
}
...
...
doOnTheEnd.php
View file @
e1d6798
...
...
@@ -26,7 +26,7 @@ if($_LOSP_DEV) {
}
if
(
$__mc_D_LOGFILE
)
{
// D::li($__mc_D_LOGFILE);
// D::li($__mc_D_LOGFILE
,1,1
);
D
::
printToFile
(
$__mc_D_LOGFILE
,
'a'
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment