Slash money

  • Site Owners

    SSC Guru

    Points: 80373

    Comments posted to this topic are about the item Slash money

  • Stewart "Arturius" Campbell

    SSC Guru

    Points: 71915

    Stranger things have been known to happen...
    Interesting question, thanks

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • HappyGeek

    SSCoach

    Points: 18684

    Nice question, thanks Steve.

    ...

  • palotaiarpad

    SSCertifiable

    Points: 5615

    Actually not only money type can be initialized this way. It works at any type where an implicit conversion from 0.00 is available, as select \; returns 0.00

  • allinadazework

    SSCarpal Tunnel

    Points: 4365

    Since it's not gold backed anymore it seems you can turn just about anything into money!

  • davidandrews13

    SSCertifiable

    Points: 6689

    is it considered a currency symbol somewhere?
    all these return 0.00

    select \
    select £
    select $
    select ¥
    select €

  • Chris Wooding

    SSCarpal Tunnel

    Points: 4349

    So, to combine QOTD from yesterday and today; if you really want to upset your colleagues, you can have.

    Declare @ money;
    Select @=\

  • Bert-701015

    SSCommitted

    Points: 1563

    davidandrews13 - Friday, November 30, 2018 4:07 AM

    is it considered a currency symbol somewhere?
    all these return 0.00

    select \
    select £
    select $
    select ¥
    select €

    You may be on to something.  I was wondering, is it documented or was this an intentional/accidental discovery?

  • davidandrews13

    SSCertifiable

    Points: 6689

    Bert-701015 - Friday, November 30, 2018 7:52 AM

    davidandrews13 - Friday, November 30, 2018 4:07 AM

    is it considered a currency symbol somewhere?
    all these return 0.00

    select \
    select £
    select $
    select ¥
    select €

    You may be on to something.  I was wondering, is it documented or was this an intentional/accidental discovery?

    https://en.wikipedia.org/wiki/Backslash

    i was looking at this and a paragraph caught my eye:

    In the Japanese encodings ISO 646 (a 7-bit code based on ASCII), JIS X 0201 (an 8-bit code), and Shift JIS (a multi-byte encoding which is 8-bit for ASCII), the code point 0x5C that would be used for backslash in ASCII is instead rendered as a yen mark (Â¥), while in Korean encoding, it is drawn as a won currency symbol (â‚©)

    whether i misunderstood it, or not, it looked like it was saying the backslash could be rendered as a Currency Symbol in certain encodings. so i thought i'd try other Currency Symbols.

  • Shayn Thomas

    SSCertifiable

    Points: 5689

    random but good to know

    ---------------------------------------------------------------------------------------
    The more you know, the more you know that you dont know

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply