ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Hans van der Meer via ntg-context <ntg-context@ntg.nl>
Subject: [NTG-context] Re: dimen 100.0pt not 100.0pt?
Date: Mon, 10 Jun 2024 15:58:00 +0200	[thread overview]
Message-ID: <3364fe40-cb6b-f7a1-5c54-fe460e894d06@gmail.com> (raw)
In-Reply-To: <9A5FEABB-7506-4C51-98B4-7CDBE32FCCC2@ziggo.nl>

Hans van der Meer via ntg-context schrieb am 10.06.2024 um 15:46:
> The I do not understand. I am testing if a dimension set can be checked 
> against the expected value.
> It looks like 100.0pt is not really 100.0pt. Why? And how can I do this 
> test properly with true as result?
> 
> \scratchdimen=100pt\relax
> \iftok{\the\scratchdimen}{100.0pt}true\else false\fi
> Screenshot 2024-06-10 at 15.37.32.png
> 
> printing \the\scratchdimen results in 100.0pt
> 
> while \meaning\scratchdimen results in: constant dimension 100.0pt

\starttext

\scratchdimen=100.0pt

\ifdim\scratchdimen=100.0pt
   True
\else
   False
\fi

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-06-10 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-10 13:46 [NTG-context] " Hans van der Meer via ntg-context
2024-06-10 13:58 ` Wolfgang Schuster [this message]
2024-06-10 14:38 ` [NTG-context] " Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3364fe40-cb6b-f7a1-5c54-fe460e894d06@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).