How to remove the trailing ` in StringForm[“Mean `1`”, 2.2]?How to remove accents from text?Trouble with ToString and StringFormKeep leading/trailing zeroes (like Defer except with numbers) in a given numberInsert or Remove randomlyStringForm print fractions readable by ToExpressionSpecifying precision of a number in StringForm[]Remove the blank lines in a text fileHow do I remove parts of this data?Remove expression with matched braces from stringStrip of all tags “Defer[…]” from a string expression
bash vs. zsh: What are the practical differences?
Is it safe to change the harddrive power feature so that it never turns off?
Increase speed altering column on large table to NON NULL
Does putting salt first make it easier for attacker to bruteforce the hash?
2019 gold coins to share
Is the use of umgeben in the passive unusual?
Sql Server delete syntax
If I leave the US through an airport, do I have to return through the same airport?
Can a human be transformed into a Mind Flayer?
Should I put programming books I wrote a few years ago on my resume?
Who won a Game of Bar Dice?
What STL algorithm can determine if exactly one item in a container satisfies a predicate?
Ability To Change Root User Password (Vulnerability?)
Possible runaway argument using circuitikz
What aircraft was used as Air Force One for the flight between Southampton and Shannon?
How to make the letter "K" that denote Krylov space
Does the Nuka-Cola bottler actually generate nuka cola?
What differences exist between adamantine and adamantite in all editions of D&D?
Electricity free spaceship
tabular: caption and align problem
The usage of kelvin in formulas
Why we don’t make use of the t-distribution for constructing a confidence interval for a proportion?
Who voices the small round football sized demon in Good Omens?
How do free-speech protections in the United States apply in public to corporate misrepresentations?
How to remove the trailing ` in StringForm[“Mean `1`”, 2.2]?
How to remove accents from text?Trouble with ToString and StringFormKeep leading/trailing zeroes (like Defer except with numbers) in a given numberInsert or Remove randomlyStringForm print fractions readable by ToExpressionSpecifying precision of a number in StringForm[]Remove the blank lines in a text fileHow do I remove parts of this data?Remove expression with matched braces from stringStrip of all tags “Defer[…]” from a string expression
$begingroup$
How to remove the trailing ` in the following?
StringForm["Mean `1`", 2.2]
produces
Mean 2.2`
string-manipulation
$endgroup$
add a comment |
$begingroup$
How to remove the trailing ` in the following?
StringForm["Mean `1`", 2.2]
produces
Mean 2.2`
string-manipulation
$endgroup$
add a comment |
$begingroup$
How to remove the trailing ` in the following?
StringForm["Mean `1`", 2.2]
produces
Mean 2.2`
string-manipulation
$endgroup$
How to remove the trailing ` in the following?
StringForm["Mean `1`", 2.2]
produces
Mean 2.2`
string-manipulation
string-manipulation
asked May 25 at 13:47
Money Oriented ProgrammerMoney Oriented Programmer
222111
222111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
The `
you're seeing is the NumberMarks
that Mathematica uses to print real numbers in InputForm
and FullForm
. You can suppress it with one of the following methods:
StringForm["Mean `1`", StandardForm[2.2]]
StringForm["Mean `1`", Style[2.2, NumberMarks->False]]
Mean 2.2
Mean 2.2
If you're not married to StringForm
, you could also use Row
:
Row["Mean ", 2.2]
Mean 2.2
or StringTemplate
:
StringTemplate["Mean `a`"] @ <|"a"->2.2|>
"Mean 2.2"
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199088%2fhow-to-remove-the-trailing-in-stringformmean-1-2-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The `
you're seeing is the NumberMarks
that Mathematica uses to print real numbers in InputForm
and FullForm
. You can suppress it with one of the following methods:
StringForm["Mean `1`", StandardForm[2.2]]
StringForm["Mean `1`", Style[2.2, NumberMarks->False]]
Mean 2.2
Mean 2.2
If you're not married to StringForm
, you could also use Row
:
Row["Mean ", 2.2]
Mean 2.2
or StringTemplate
:
StringTemplate["Mean `a`"] @ <|"a"->2.2|>
"Mean 2.2"
$endgroup$
add a comment |
$begingroup$
The `
you're seeing is the NumberMarks
that Mathematica uses to print real numbers in InputForm
and FullForm
. You can suppress it with one of the following methods:
StringForm["Mean `1`", StandardForm[2.2]]
StringForm["Mean `1`", Style[2.2, NumberMarks->False]]
Mean 2.2
Mean 2.2
If you're not married to StringForm
, you could also use Row
:
Row["Mean ", 2.2]
Mean 2.2
or StringTemplate
:
StringTemplate["Mean `a`"] @ <|"a"->2.2|>
"Mean 2.2"
$endgroup$
add a comment |
$begingroup$
The `
you're seeing is the NumberMarks
that Mathematica uses to print real numbers in InputForm
and FullForm
. You can suppress it with one of the following methods:
StringForm["Mean `1`", StandardForm[2.2]]
StringForm["Mean `1`", Style[2.2, NumberMarks->False]]
Mean 2.2
Mean 2.2
If you're not married to StringForm
, you could also use Row
:
Row["Mean ", 2.2]
Mean 2.2
or StringTemplate
:
StringTemplate["Mean `a`"] @ <|"a"->2.2|>
"Mean 2.2"
$endgroup$
The `
you're seeing is the NumberMarks
that Mathematica uses to print real numbers in InputForm
and FullForm
. You can suppress it with one of the following methods:
StringForm["Mean `1`", StandardForm[2.2]]
StringForm["Mean `1`", Style[2.2, NumberMarks->False]]
Mean 2.2
Mean 2.2
If you're not married to StringForm
, you could also use Row
:
Row["Mean ", 2.2]
Mean 2.2
or StringTemplate
:
StringTemplate["Mean `a`"] @ <|"a"->2.2|>
"Mean 2.2"
answered May 25 at 14:07
Carl WollCarl Woll
83k3105216
83k3105216
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f199088%2fhow-to-remove-the-trailing-in-stringformmean-1-2-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown