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
Is the Indo-European language family made up?
Should I disclose a colleague's illness (that I should not know) when others badmouth him
Using credit/debit card details vs swiping a card in a payment (credit card) terminal
What are the real benefits of using Salesforce DX?
What are these arcade games in Ghostbusters 1984?
Is it possible to play as a necromancer skeleton?
Count Even Digits In Number
Employer demanding to see degree after poor code review
I unknowingly submitted plagarised work
Where have Brexit voters gone?
Why doesn't the Earth accelerate towards the Moon?
What will be the real voltage along the line with a voltage source and a capacitor?
What does this symbol on the box of power supply mean?
Is real public IP Address hidden when using a system wide proxy in Windows 10?
Installed Electric Tankless Water Heater - Internet loss when active
How to use " shadow " in pstricks?
Why is this Simple Puzzle impossible to solve?
Is the Starlink array really visible from Earth?
Does the unit of measure matter when you are solving for the diameter of a circumference?
I think I may have violated academic integrity last year - what should I do?
Why aren't space telescopes put in GEO?
Looking for a soft substance that doesn't dissolve underwater
The art of clickbait captions
pic versus macro in TikZ
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 8 hours ago
Artificial Odorless ArmpitArtificial Odorless Armpit
217111
217111
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 8 hours ago
Carl WollCarl Woll
80.7k3104208
80.7k3104208
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